You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.4 KiB
Dart
61 lines
1.4 KiB
Dart
|
1 month ago
|
class QrScanLocationData {
|
||
|
|
int? siteId;
|
||
|
|
String? siteName;
|
||
|
|
int? buildingId;
|
||
|
|
String? buildingName;
|
||
|
|
int? floorId;
|
||
|
|
String? floorName;
|
||
|
|
int? departmentId;
|
||
|
|
String? departmentName;
|
||
|
|
int? roomId;
|
||
|
|
String? roomName;
|
||
|
|
String? locationDescription;
|
||
|
|
|
||
|
|
QrScanLocationData({
|
||
|
|
this.siteId,
|
||
|
|
this.siteName,
|
||
|
|
this.buildingId,
|
||
|
|
this.buildingName,
|
||
|
|
this.floorId,
|
||
|
|
this.floorName,
|
||
|
|
this.departmentId,
|
||
|
|
this.departmentName,
|
||
|
|
this.roomId,
|
||
|
|
this.roomName,
|
||
|
|
this.locationDescription,
|
||
|
|
});
|
||
|
|
|
||
|
|
factory QrScanLocationData.fromJson(Map<String, dynamic> json) {
|
||
|
|
return QrScanLocationData(
|
||
|
|
siteId: json['siteId'],
|
||
|
|
siteName: json['siteName'],
|
||
|
|
buildingId: json['buildingId'],
|
||
|
|
buildingName: json['buildingName'],
|
||
|
|
floorId: json['floorId'],
|
||
|
|
floorName: json['floorName'],
|
||
|
|
departmentId: json['departmentId'],
|
||
|
|
departmentName: json['departmentName'],
|
||
|
|
roomId: json['roomId'],
|
||
|
|
roomName: json['roomName'],
|
||
|
|
locationDescription: json['locationDescription'],
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
Map<String, dynamic> toJson() {
|
||
|
|
return {
|
||
|
|
'siteId': siteId,
|
||
|
|
'siteName': siteName,
|
||
|
|
'buildingId': buildingId,
|
||
|
|
'buildingName': buildingName,
|
||
|
|
'floorId': floorId,
|
||
|
|
'floorName': floorName,
|
||
|
|
'departmentId': departmentId,
|
||
|
|
'departmentName': departmentName,
|
||
|
|
'roomId': roomId,
|
||
|
|
'roomName': roomName,
|
||
|
|
'locationDescription': locationDescription,
|
||
|
|
};
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|