IssuingAuthorizationPendingRequest.fromJson constructor
IssuingAuthorizationPendingRequest.fromJson(
- Object? json
Implementation
factory IssuingAuthorizationPendingRequest.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return IssuingAuthorizationPendingRequest(
amount: (map['amount'] as num).toInt(),
amountDetails: map['amount_details'] == null
? null
: IssuingAuthorizationAmountDetails.fromJson(map['amount_details']),
currency: (map['currency'] as String),
isAmountControllable: (map['is_amount_controllable'] as bool),
merchantAmount: (map['merchant_amount'] as num).toInt(),
merchantCurrency: (map['merchant_currency'] as String),
networkRiskScore: map['network_risk_score'] == null
? null
: (map['network_risk_score'] as num).toInt(),
);
}