From 85bcc1a0eae12f4bf00ee28f538532f5ded9b2f8 Mon Sep 17 00:00:00 2001 From: WaseemAbbasi22 <50428976+WaseemAbbasi22@users.noreply.github.com> Date: Sun, 20 Sep 2026 09:18:38 +0300 Subject: [PATCH] Fixed bug ATOMS-2248 --- lib/models/generic_attachment_model.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'];