Data.fromJson constructor

Data.fromJson(
  1. Map<String, dynamic> json
)

Implementation

Data.fromJson(Map<String, dynamic> json) {
  if (json['paymentCollectionByModeList'] != null) {
    paymentCollectionByModeList = <PaymentCollectionByModeList>[];
    json['paymentCollectionByModeList'].forEach((v) {
      paymentCollectionByModeList!
          .add(new PaymentCollectionByModeList.fromJson(v));
    });
  }
  transactionId = json['transactionId'];
  if (json['details'] != null) {
    details = <Details>[];
    json['details'].forEach((v) {
      details!.add(new Details.fromJson(v));
    });
  }
  totalCollectedAmount = json['totalCollectedAmount'] != null
      ? new TotalCollectedAmount.fromJson(json['totalCollectedAmount'])
      : null;
  paymentTransactionStatus = json['paymentTransactionStatus'] != null
      ? new PaymentTransactionStatus.fromJson(
      json['paymentTransactionStatus'])
      : null;
  paymentCollectionOrderId = json['paymentCollectionOrderId'];
  notificationRecipientId = json['notificationRecipientId'];
}