|
|
|
|
@ -26,9 +26,9 @@ class GenericAttachmentModel {
|
|
|
|
|
|
|
|
|
|
int? id;
|
|
|
|
|
String? name;
|
|
|
|
|
String ? module;
|
|
|
|
|
String ? subModule;
|
|
|
|
|
String ? uploadedBy;
|
|
|
|
|
String? module;
|
|
|
|
|
String? subModule;
|
|
|
|
|
String? uploadedBy;
|
|
|
|
|
String? createdBy;
|
|
|
|
|
String? originalName;
|
|
|
|
|
Lookup? documentType;
|
|
|
|
|
@ -163,6 +163,7 @@ class GenericAttachmentModel {
|
|
|
|
|
documentType = json['documentType'] != null ? Lookup.fromJson(json['documentType']) : null;
|
|
|
|
|
originalName = json['originalName'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
GenericAttachmentModel.fromAssetInventoryJson(Map<String, dynamic> json) {
|
|
|
|
|
id = json['id'];
|
|
|
|
|
name = json['attachmentName'];
|
|
|
|
|
@ -173,7 +174,7 @@ class GenericAttachmentModel {
|
|
|
|
|
|
|
|
|
|
GenericAttachmentModel.fromTrafJson(Map<String, dynamic> json) {
|
|
|
|
|
id = json['id'];
|
|
|
|
|
moduleReferenceId= json['trafId'];
|
|
|
|
|
moduleReferenceId = json['trafId'];
|
|
|
|
|
name = json['attachmentName'];
|
|
|
|
|
attachmentDescription = json['attachmentDescription'];
|
|
|
|
|
moduleReferenceId = json['trafId'];
|
|
|
|
|
@ -189,6 +190,7 @@ class GenericAttachmentModel {
|
|
|
|
|
data['documentTypeId'] = documentType?.id;
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toSparePartJson() {
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
data['id'] = id;
|
|
|
|
|
@ -239,7 +241,6 @@ class GenericAttachmentModel {
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toGasRefillJson() {
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
data['id'] = id;
|
|
|
|
|
@ -305,6 +306,7 @@ class GenericAttachmentModel {
|
|
|
|
|
data['originalName'] = originalName;
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toAssetDeliveryJson() {
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
data['id'] = id;
|
|
|
|
|
@ -314,6 +316,7 @@ class GenericAttachmentModel {
|
|
|
|
|
data['createdBy'] = createdBy;
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toInventoryJson() {
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
data['id'] = id;
|
|
|
|
|
@ -342,6 +345,7 @@ class GenericAttachmentModel {
|
|
|
|
|
data['attachmentURL'] = attachmentURL;
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toTaskJson() {
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
data['id'] = id;
|
|
|
|
|
|