TefTransactionModel.fromMap constructor
TefTransactionModel.fromMap(
- Map<String, dynamic> map
)
Implementation
factory TefTransactionModel.fromMap(Map<String, dynamic> map) {
return TefTransactionModel(
id: map['id'] != null ? map['id'] as int : null,
tefCodPayment: map['tefCodPayment'] != null ? map['tefCodPayment'] as String : null,
tefDescPayment: map['tefDescPayment'] != null ? map['tefDescPayment'] as String : null,
tefInstitution: map['tefInstitution'] != null ? map['tefInstitution'] as String : null,
tefCodInstitution: map['tefCodInstitution'] != null ? map['tefCodInstitution'] as String : null,
tefCardType: map['tefCardType'] != null ? map['tefCardType'] as String : null,
binCard: map['binCard'] != null ? map['binCard'] as String : null,
tefDigitalWalletId: map['tefDigitalWalletId'] != null ? map['tefDigitalWalletId'] as String : null,
tefDigitalWalletType: map['tefDigitalWalletType'] != null ? map['tefDigitalWalletType'] as String : null,
tefDigitalWalletName: map['tefDigitalWalletName'] != null ? map['tefDigitalWalletName'] as String : null,
tefNSUSitef: map['tefNSUSitef'] != null ? map['tefNSUSitef'] as String : null,
tefNSUAuthorizing: map['tefNSUAuthorizing'] != null ? map['tefNSUAuthorizing'] as String : null,
tefCodAuthorization: map['tefCodAuthorization'] != null ? map['tefCodAuthorization'] as String : null,
establishmentReceipt: map['establishmentReceipt'] != null ? map['establishmentReceipt'] as String : null,
customerReceipt: map['customerReceipt'] != null ? map['customerReceipt'] as String : null,
transactionConfirmation: map['transactionConfirmation'] != null ? map['transactionConfirmation'] as String : null,
couponModality: map['couponModality'] != null ? map['couponModality'] as String : null,
transactionDateTime: map['transactionDateTime'] != null ? map['transactionDateTime'] as String : null,
cancellationMode: map['cancellationMode'] != null ? map['cancellationMode'] as String : null,
amountToPay: map['amountToPay'] != null ? map['amountToPay'] as String : null,
amountReceived: map['amountReceived'] != null ? map['amountReceived'] as String : null,
returnValue: map['returnValue'] != null ? map['returnValue'] as String : null,
paymentAmount: map['paymentAmount'] != null ? map['paymentAmount'] as String : null,
codCancellationMode: map['codCancellationMode'] != null ? map['codCancellationMode'] as String : null,
resultCode: map['resultCode'] != null ? map['resultCode'] as int : null,
compDadosConf: map['compDadosConf'] != null ? map['compDadosConf'] as String : null,
codTrans: map['codTrans'] != null ? map['codTrans'] as String : null,
redeAut: map['redeAut'] != null ? map['redeAut'] as String : null,
codResposta: map['codResposta'] != null ? map['codResposta'] as String : null,
typeFields: map['typeFields'] != null ? map['typeFields'] as String : null,
codDocumentCancelled: map['codDocumentCancelled'] != null ? map['codDocumentCancelled'] as String : null,
amountCancelled: map['amountCancelled'] != null ? map['amountCancelled'] as String : null,
cardNumber: map['cardNumber'] != null ? map['cardNumber'] as String : null,
cardNumberLast: map['cardNumberLast'] != null ? map['cardNumberLast'] as String : null,
);
}