|
|
|
|
@ -54,7 +54,7 @@ class AssetByIdModel {
|
|
|
|
|
String? comment;
|
|
|
|
|
bool? isEnabled;
|
|
|
|
|
String? tagCode;
|
|
|
|
|
List<String>? assetAttachments;
|
|
|
|
|
List<AssetAttachment>? assetAttachments;
|
|
|
|
|
String? retirementTypeName;
|
|
|
|
|
String? retirementStatusName;
|
|
|
|
|
String? retirementDate;
|
|
|
|
|
@ -189,9 +189,9 @@ class AssetByIdModel {
|
|
|
|
|
isEnabled = json['isEnabled'];
|
|
|
|
|
tagCode = json['tagCode'];
|
|
|
|
|
if (json['assetAttachments'] != null) {
|
|
|
|
|
assetAttachments = <String>[];
|
|
|
|
|
assetAttachments = <AssetAttachment>[];
|
|
|
|
|
json['assetAttachments'].forEach((v) {
|
|
|
|
|
assetAttachments!.add(v);
|
|
|
|
|
assetAttachments!.add(AssetAttachment.fromJson(v));
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
retirementTypeName = json['retirementTypeName'];
|
|
|
|
|
@ -323,6 +323,31 @@ class MultiAssets {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class AssetAttachment {
|
|
|
|
|
int? id;
|
|
|
|
|
String? attachmentName;
|
|
|
|
|
String? attachmentURL;
|
|
|
|
|
String? originalName;
|
|
|
|
|
|
|
|
|
|
AssetAttachment({this.id, this.attachmentName, this.attachmentURL, this.originalName});
|
|
|
|
|
|
|
|
|
|
AssetAttachment.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
id = json['id'];
|
|
|
|
|
attachmentName = json['attachmentName'];
|
|
|
|
|
attachmentURL = json['attachmentURL'];
|
|
|
|
|
originalName = json['originalName'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
data['id'] = id;
|
|
|
|
|
data['attachmentName'] = attachmentName;
|
|
|
|
|
data['attachmentURL'] = attachmentURL;
|
|
|
|
|
data['originalName'] = originalName;
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class ModelDefinition {
|
|
|
|
|
int? id;
|
|
|
|
|
String? assetName;
|
|
|
|
|
|