|
|
|
@ -115,7 +115,9 @@ class Asset {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
comment = json['comment'];
|
|
|
|
comment = json['comment'];
|
|
|
|
tagCode = json['tagCode'];
|
|
|
|
tagCode = json['tagCode'];
|
|
|
|
|
|
|
|
assetPhoto = json['assetPhoto'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
num id;
|
|
|
|
String assetSerialNo;
|
|
|
|
String assetSerialNo;
|
|
|
|
String systemID;
|
|
|
|
String systemID;
|
|
|
|
@ -165,6 +167,7 @@ class Asset {
|
|
|
|
String comment;
|
|
|
|
String comment;
|
|
|
|
String tagCode;
|
|
|
|
String tagCode;
|
|
|
|
String assetPhoto;
|
|
|
|
String assetPhoto;
|
|
|
|
|
|
|
|
|
|
|
|
Asset copyWith({
|
|
|
|
Asset copyWith({
|
|
|
|
num id,
|
|
|
|
num id,
|
|
|
|
String assetSerialNo,
|
|
|
|
String assetSerialNo,
|
|
|
|
@ -267,6 +270,7 @@ class Asset {
|
|
|
|
tagCode: tagCode ?? this.tagCode,
|
|
|
|
tagCode: tagCode ?? this.tagCode,
|
|
|
|
assetPhoto: assetPhoto ?? this.assetPhoto,
|
|
|
|
assetPhoto: assetPhoto ?? this.assetPhoto,
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
map['id'] = id;
|
|
|
|
map['id'] = id;
|
|
|
|
|