PaymentIntentFpx.fromJson constructor

PaymentIntentFpx.fromJson(
  1. Object? json
)

Implementation

factory PaymentIntentFpx.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentIntentFpx(
    accountHolderType: map['account_holder_type'] == null
        ? null
        : IssuingCardholderType.fromJson(map['account_holder_type']),
    bank: PaymentMethodDetailsFpxBank.fromJson(map['bank']),
  );
}