|
|
|
@ -13,12 +13,12 @@ class AssetByIdModel {
|
|
|
|
AssetInfo? oldAsset;
|
|
|
|
AssetInfo? oldAsset;
|
|
|
|
AssetReplace? isParent;
|
|
|
|
AssetReplace? isParent;
|
|
|
|
AssetInfo? parentAsset;
|
|
|
|
AssetInfo? parentAsset;
|
|
|
|
AssetReplace? assetType;
|
|
|
|
Lookup? assetType;
|
|
|
|
DemoRequest? demoRequest;
|
|
|
|
DemoRequest? demoRequest;
|
|
|
|
String? missionCritical;
|
|
|
|
String? missionCritical;
|
|
|
|
Site? site;
|
|
|
|
Site? site;
|
|
|
|
AssetReplace? building;
|
|
|
|
Lookup? building;
|
|
|
|
AssetReplace? floor;
|
|
|
|
Lookup? floor;
|
|
|
|
Department? department;
|
|
|
|
Department? department;
|
|
|
|
Lookup? room;
|
|
|
|
Lookup? room;
|
|
|
|
num? testsDay;
|
|
|
|
num? testsDay;
|
|
|
|
@ -60,6 +60,7 @@ class AssetByIdModel {
|
|
|
|
String? retirementDate;
|
|
|
|
String? retirementDate;
|
|
|
|
AssetGroup? assetGroup;
|
|
|
|
AssetGroup? assetGroup;
|
|
|
|
String? assetPhoto;
|
|
|
|
String? assetPhoto;
|
|
|
|
|
|
|
|
String? modelPhoto;
|
|
|
|
String? nextPMDate;
|
|
|
|
String? nextPMDate;
|
|
|
|
String? lastPMDate;
|
|
|
|
String? lastPMDate;
|
|
|
|
|
|
|
|
|
|
|
|
@ -122,6 +123,7 @@ class AssetByIdModel {
|
|
|
|
this.retirementDate,
|
|
|
|
this.retirementDate,
|
|
|
|
this.assetGroup,
|
|
|
|
this.assetGroup,
|
|
|
|
this.assetPhoto,
|
|
|
|
this.assetPhoto,
|
|
|
|
|
|
|
|
this.modelPhoto,
|
|
|
|
this.nextPMDate,
|
|
|
|
this.nextPMDate,
|
|
|
|
this.lastPMDate});
|
|
|
|
this.lastPMDate});
|
|
|
|
|
|
|
|
|
|
|
|
@ -142,12 +144,12 @@ class AssetByIdModel {
|
|
|
|
oldAsset = json['oldAsset'] != null ? AssetInfo.fromJson(json['oldAsset']) : null;
|
|
|
|
oldAsset = json['oldAsset'] != null ? AssetInfo.fromJson(json['oldAsset']) : null;
|
|
|
|
isParent = json['isParent'] != null ? AssetReplace.fromJson(json['isParent']) : null;
|
|
|
|
isParent = json['isParent'] != null ? AssetReplace.fromJson(json['isParent']) : null;
|
|
|
|
parentAsset = json['parentAsset'] != null ? AssetInfo.fromJson(json['parentAsset']) : null;
|
|
|
|
parentAsset = json['parentAsset'] != null ? AssetInfo.fromJson(json['parentAsset']) : null;
|
|
|
|
assetType = json['assetType'] != null ? AssetReplace.fromJson(json['assetType']) : null;
|
|
|
|
assetType = json['assetType'] != null ? Lookup.fromJson(json['assetType']) : null;
|
|
|
|
demoRequest = json['demoRequest'] != null ? DemoRequest.fromJson(json['demoRequest']) : null;
|
|
|
|
demoRequest = json['demoRequest'] != null ? DemoRequest.fromJson(json['demoRequest']) : null;
|
|
|
|
missionCritical = json['missionCritical'];
|
|
|
|
missionCritical = json['missionCritical'];
|
|
|
|
site = json['site'] != null ? Site.fromJson(json['site']) : null;
|
|
|
|
site = json['site'] != null ? Site.fromJson(json['site']) : null;
|
|
|
|
building = json['building'] != null ? AssetReplace.fromJson(json['building']) : null;
|
|
|
|
building = json['building'] != null ? Lookup.fromJson(json['building']) : null;
|
|
|
|
floor = json['floor'] != null ? AssetReplace.fromJson(json['floor']) : null;
|
|
|
|
floor = json['floor'] != null ? Lookup.fromJson(json['floor']) : null;
|
|
|
|
department = json['department'] != null ? Department.fromJson(json['department']) : null;
|
|
|
|
department = json['department'] != null ? Department.fromJson(json['department']) : null;
|
|
|
|
room = json['room'] != null ? Lookup.fromJson(json['room']) : null;
|
|
|
|
room = json['room'] != null ? Lookup.fromJson(json['room']) : null;
|
|
|
|
testsDay = json['testsDay'];
|
|
|
|
testsDay = json['testsDay'];
|
|
|
|
@ -199,6 +201,7 @@ class AssetByIdModel {
|
|
|
|
retirementDate = json['retirementDate'];
|
|
|
|
retirementDate = json['retirementDate'];
|
|
|
|
assetGroup = json['assetGroup'] != null ? AssetGroup.fromJson(json['assetGroup']) : null;
|
|
|
|
assetGroup = json['assetGroup'] != null ? AssetGroup.fromJson(json['assetGroup']) : null;
|
|
|
|
assetPhoto = json['assetPhoto'];
|
|
|
|
assetPhoto = json['assetPhoto'];
|
|
|
|
|
|
|
|
modelPhoto = json['modelPhoto'];
|
|
|
|
nextPMDate = json['nextPMDate'];
|
|
|
|
nextPMDate = json['nextPMDate'];
|
|
|
|
lastPMDate = json['lastPMDate'];
|
|
|
|
lastPMDate = json['lastPMDate'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -295,6 +298,7 @@ class AssetByIdModel {
|
|
|
|
data['assetGroup'] = assetGroup?.toJson();
|
|
|
|
data['assetGroup'] = assetGroup?.toJson();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
data['assetPhoto'] = assetPhoto;
|
|
|
|
data['assetPhoto'] = assetPhoto;
|
|
|
|
|
|
|
|
data['modelPhoto'] = modelPhoto;
|
|
|
|
data['nextPMDate'] = nextPMDate;
|
|
|
|
data['nextPMDate'] = nextPMDate;
|
|
|
|
data['lastPMDate'] = lastPMDate;
|
|
|
|
data['lastPMDate'] = lastPMDate;
|
|
|
|
return data;
|
|
|
|
return data;
|
|
|
|
@ -571,18 +575,50 @@ class Floors {
|
|
|
|
class Departments {
|
|
|
|
class Departments {
|
|
|
|
int? id;
|
|
|
|
int? id;
|
|
|
|
String? name;
|
|
|
|
String? name;
|
|
|
|
|
|
|
|
List<Rooms>? rooms;
|
|
|
|
|
|
|
|
|
|
|
|
Departments({this.id, this.name});
|
|
|
|
Departments({this.id, this.name});
|
|
|
|
|
|
|
|
|
|
|
|
Departments.fromJson(Map<String, dynamic> json) {
|
|
|
|
Departments.fromJson(Map<String, dynamic> json) {
|
|
|
|
id = json['id'];
|
|
|
|
id = json['id'];
|
|
|
|
name = json['name'];
|
|
|
|
name = json['name'];
|
|
|
|
|
|
|
|
if (json['departments'] != null) {
|
|
|
|
|
|
|
|
rooms = <Rooms>[];
|
|
|
|
|
|
|
|
json['rooms'].forEach((v) {
|
|
|
|
|
|
|
|
rooms!.add(Rooms.fromJson(v));
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
data['id'] = id;
|
|
|
|
data['id'] = id;
|
|
|
|
data['name'] = name;
|
|
|
|
data['name'] = name;
|
|
|
|
|
|
|
|
if (rooms != null) {
|
|
|
|
|
|
|
|
data['rooms'] = rooms!.map((v) => v.toJson()).toList();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return data;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Rooms {
|
|
|
|
|
|
|
|
int? id;
|
|
|
|
|
|
|
|
String? name;
|
|
|
|
|
|
|
|
int? value;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rooms({this.id, this.name, this.value});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rooms.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
|
|
|
id = json['id'];
|
|
|
|
|
|
|
|
name = json['name'];
|
|
|
|
|
|
|
|
value = json['value'];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
|
|
|
data['id'] = id;
|
|
|
|
|
|
|
|
data['name'] = name;
|
|
|
|
|
|
|
|
data['value'] = value;
|
|
|
|
return data;
|
|
|
|
return data;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -592,14 +628,16 @@ class Department {
|
|
|
|
String? departmentName;
|
|
|
|
String? departmentName;
|
|
|
|
String? departmentCode;
|
|
|
|
String? departmentCode;
|
|
|
|
String? ntCode;
|
|
|
|
String? ntCode;
|
|
|
|
|
|
|
|
num? operationalHours;
|
|
|
|
|
|
|
|
|
|
|
|
Department({this.id, this.departmentName, this.departmentCode, this.ntCode});
|
|
|
|
Department({this.id, this.departmentName, this.departmentCode, this.ntCode, this.operationalHours});
|
|
|
|
|
|
|
|
|
|
|
|
Department.fromJson(Map<String, dynamic> json) {
|
|
|
|
Department.fromJson(Map<String, dynamic> json) {
|
|
|
|
id = json['id'];
|
|
|
|
id = json['id'];
|
|
|
|
departmentName = json['departmentName'];
|
|
|
|
departmentName = json['departmentName'];
|
|
|
|
departmentCode = json['departmentCode'];
|
|
|
|
departmentCode = json['departmentCode'];
|
|
|
|
ntCode = json['ntCode'];
|
|
|
|
ntCode = json['ntCode'];
|
|
|
|
|
|
|
|
operationalHours = json['operationalHours'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
@ -608,6 +646,7 @@ class Department {
|
|
|
|
data['departmentName'] = departmentName;
|
|
|
|
data['departmentName'] = departmentName;
|
|
|
|
data['departmentCode'] = departmentCode;
|
|
|
|
data['departmentCode'] = departmentCode;
|
|
|
|
data['ntCode'] = ntCode;
|
|
|
|
data['ntCode'] = ntCode;
|
|
|
|
|
|
|
|
data['operationalHours'] = operationalHours;
|
|
|
|
return data;
|
|
|
|
return data;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|