PaymentMethodDetailsFpx.fromJson constructor
PaymentMethodDetailsFpx.fromJson(
- Object? json
Implementation
factory PaymentMethodDetailsFpx.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentMethodDetailsFpx(
accountHolderType: map['account_holder_type'] == null
? null
: InboundTransfersPaymentMethodDetailsUsBankAccountAccountHolderType
.fromJson(map['account_holder_type']),
bank: PaymentMethodDetailsFpxBank.fromJson(map['bank']),
transactionId: map['transaction_id'] == null
? null
: (map['transaction_id'] as String),
);
}