|
|
|
@ -14,7 +14,7 @@ class AssetByIdModel {
|
|
|
|
AssetReplace? isParent;
|
|
|
|
AssetReplace? isParent;
|
|
|
|
AssetInfo? parentAsset;
|
|
|
|
AssetInfo? parentAsset;
|
|
|
|
AssetReplace? assetType;
|
|
|
|
AssetReplace? assetType;
|
|
|
|
String? demoRequest;
|
|
|
|
DemoRequest? demoRequest;
|
|
|
|
String? missionCritical;
|
|
|
|
String? missionCritical;
|
|
|
|
Site? site;
|
|
|
|
Site? site;
|
|
|
|
AssetReplace? building;
|
|
|
|
AssetReplace? building;
|
|
|
|
@ -143,7 +143,7 @@ class AssetByIdModel {
|
|
|
|
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 ? AssetReplace.fromJson(json['assetType']) : null;
|
|
|
|
demoRequest = json['demoRequest'];
|
|
|
|
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 ? AssetReplace.fromJson(json['building']) : null;
|
|
|
|
@ -229,7 +229,7 @@ class AssetByIdModel {
|
|
|
|
if (assetType != null) {
|
|
|
|
if (assetType != null) {
|
|
|
|
data['assetType'] = assetType?.toJson();
|
|
|
|
data['assetType'] = assetType?.toJson();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
data['demoRequest'] = demoRequest;
|
|
|
|
data['demoRequest'] = demoRequest?.toJson();
|
|
|
|
data['missionCritical'] = missionCritical;
|
|
|
|
data['missionCritical'] = missionCritical;
|
|
|
|
if (site != null) {
|
|
|
|
if (site != null) {
|
|
|
|
data['site'] = site?.toJson();
|
|
|
|
data['site'] = site?.toJson();
|
|
|
|
@ -706,3 +706,22 @@ class AssetInfo {
|
|
|
|
return map;
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class DemoRequest {
|
|
|
|
|
|
|
|
int? id;
|
|
|
|
|
|
|
|
String? label;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DemoRequest({this.id, this.label});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DemoRequest.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
|
|
|
id = json['id'];
|
|
|
|
|
|
|
|
label = json['label'];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
|
|
|
data['id'] = id;
|
|
|
|
|
|
|
|
data['label'] = label;
|
|
|
|
|
|
|
|
return data;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|