PurchaseRequest.fromMap constructor
PurchaseRequest.fromMap(
- Map<String, dynamic> map
)
Implementation
factory PurchaseRequest.fromMap(Map<String, dynamic> map) {
return PurchaseRequest(
pan: map['pan'] as String,
amount: map['amount'] as num,
terminalId: map['terminalId'] as int,
merchantId: map['merchantId'] as int,
cardHolderName: map['cardHolderName'] as String,
cvV2: map['cvV2'] as String,
merchantReference: map['merchantReference'] as String,
dateExpiration: map['dateExpiration'] as String,
refundReason: map['refundReason'] as String,
// requestDateTime: map['requestDateTime'] as String,
orderCustomerEmail: map['orderCustomerEmail'] as String,
otp: map['otp'] as String,
orderKey: map['orderKey'] as String,
clientMail: map['clientMail'] as String,
transactionIdentifierType: map['transactionIdentifierType'] as int,
currencyCode: map['currencyCode'] as String,
currencyId: map['currencyId'] as int,
transactionId: map['transactionId'] as String,
);
}