TransactionSummary.fromJson constructor

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

Implementation

factory TransactionSummary.fromJson(Map<String, dynamic> json) => TransactionSummary(
  mobileNo: json["MOBILE_NO"],
  txnAmount: json["TXN_AMOUNT"]?.toDouble(),
  productDetails: json["PRODUCT_DETAILS"] == null ? [] : List<dynamic>.from(json["PRODUCT_DETAILS"]!.map((x) => x)),
);