diff --git a/lib/models/generic_attachment_model.dart b/lib/models/generic_attachment_model.dart index 0821953f..15068740 100644 --- a/lib/models/generic_attachment_model.dart +++ b/lib/models/generic_attachment_model.dart @@ -78,7 +78,7 @@ class GenericAttachmentModel { id = json['id']?.toInt(); name = json['attachmentName']; attachmentDescription = json['attachmentDescription']; - documentType = json['attachmentType'] != null ? Lookup.fromJson(json['attachmentType']) : null; + documentType = json['documentType'] != null ? Lookup.fromJson(json['documentType']) : null; moduleReferenceId = json['loanId']; attachmentTypeId = json['loanAttachmentTypeId']; } @@ -88,7 +88,7 @@ class GenericAttachmentModel { name = json['attachmentName']; attachmentDescription = json['attachmentDescription']; moduleReferenceId = json['loanId']; - documentType = json['attachmentType'] != null ? Lookup.fromJson(json['attachmentType']) : null; + documentType = json['documentType'] != null ? Lookup.fromJson(json['documentType']) : null; attachmentTypeId = json['loanAttachmentTypeId']; createdBy = json['createdBy']; createdDate = json['createdDate'];