From 3de2b2061577a29c7469459444c5295a6d566a55 Mon Sep 17 00:00:00 2001 From: Rahul Dev Garg <34365102+rahuldevgarg@users.noreply.github.com> Date: Mon, 16 Oct 2023 11:02:35 +0530 Subject: [PATCH] PFM-4087 --- .../lib/model/reports/InactiveConsumerReportData.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/mgramseva/lib/model/reports/InactiveConsumerReportData.dart b/frontend/mgramseva/lib/model/reports/InactiveConsumerReportData.dart index 0de92354a..f94ca61a4 100644 --- a/frontend/mgramseva/lib/model/reports/InactiveConsumerReportData.dart +++ b/frontend/mgramseva/lib/model/reports/InactiveConsumerReportData.dart @@ -10,12 +10,12 @@ class InactiveConsumerReportData { this.inactiveDate, this.inactivatedByUuid, this.inactivatedByName); InactiveConsumerReportData.fromJson(Map json) { - tenantName = json['tenantName']; - connectionNo = json['connectionno']; - status = json['status']; + tenantName = json['tenantName']??''; + connectionNo = json['connectionno']??'-'; + status = json['status']??'-'; inactiveDate = json['inactiveDate']; - inactivatedByUuid = json['inactivatedByUuid']; - inactivatedByName = json['inactivatedByName']; + inactivatedByUuid = json['inactivatedByUuid']??'-'; + inactivatedByName = json['inactivatedByName']??'-'; } Map toJson() {