fromJson static method
Implementation
static GetnetPaymentPayload fromJson(Map map) {
return GetnetPaymentPayload(
paymentType: GetnetPaymentType.values.byName(map['paymentType']),
currencyPosition: GetnetCurrencyPosition.values.byName(
map['currencyPosition'],
),
currencyCode:
map['currencyCode'] != null
? (map['currencyCode'] as num).toInt()
: 986,
creditType:
map['creditType'] != null
? GetnetCreditType.values.byName(map['creditType'])
: null,
installments:
map['installments'] != null
? (map['installments'] as num).toInt()
: null,
amount: (map['amount'] as num).toDouble(),
callerId: map['callerId'],
orderId: map['orderId'],
);
}