TransactionModel.fromMap constructor

TransactionModel.fromMap(
  1. Map<String, dynamic> map
)

get TransactionModel from map.

Implementation

factory TransactionModel.fromMap(Map<String, dynamic> map) {
  return TransactionModel(
    transactionType: map['TransactionType'] ?? '',
    billingRefNo: map['BillingRefNo'],
    paymentAmount: map['PaymentAmount'],
    mobileNumberForEChargeSlip: map['MobileNumberForEChargeSlip'],
  );
}