StoneTransactionModel.fromMap constructor
StoneTransactionModel.fromMap(
- Map<String, dynamic> map
)
Implementation
factory StoneTransactionModel.fromMap(Map<String, dynamic> map) {
return StoneTransactionModel(
actionCode:
map['actionCode'] != null ? map['actionCode'] as String : null,
aid: map['aid'] != null ? map['aid'] as String : null,
amount: map['amount'] != null ? map['amount'] as String : null,
arcq: map['arcq'] != null ? map['arcq'] as String : null,
cardBrand: map['cardBrand'] != null ? map['cardBrand'] as String : null,
cardHolderNumber: map['cardHolderNumber'] != null
? map['cardHolderNumber'] as String
: null,
date: map['date'] != null ? map['date'] as String : null,
entryMode: map['entryMode'] != null ? map['entryMode'] as String : null,
idFromBase: map['idFromBase'] != null ? map['idFromBase'] as int : null,
isBuildResponse:
map['isBuildResponse'] != null ? map['isBuildResponse'] as int : null,
manufacture:
map['manufacture'] != null ? map['manufacture'] as String : null,
result: map['result'] != null ? map['result'] as int : null,
saleAffiliationKey: map['saleAffiliationKey'] != null
? map['saleAffiliationKey'] as String
: null,
serialNumber:
map['serialNumber'] != null ? map['serialNumber'] as String : null,
time: map['time'] != null ? map['time'] as String : null,
transactionReference: map['transactionReference'] != null
? map['transactionReference'] as String
: null,
typeOfTransactionEnum: map['typeOfTransactionEnum'] != null
? map['typeOfTransactionEnum'] as String
: null,
errorMessage:
map['errorMessage'] != null ? map['errorMessage'] as String : null,
method: map['method'] != null ? map['method'] as String : null,
transactionStatus: map['transactionStatus'] != null
? map['transactionStatus'] as String
: null,
messageFromAuthorize: map['messageFromAuthorize'] != null
? map['messageFromAuthorize'] as String
: null,
message: map['message'] != null ? map['message'] as String : null,
authorizationCode: map['authorizationCode'] != null
? map['authorizationCode'] as String
: null,
actionResultMessage: map['actionResultMessage'] != null
? map['actionResultMessage'] as String
: null,
);
}