PaymentMethodDetailsIdeal.fromJson constructor

PaymentMethodDetailsIdeal.fromJson(
  1. Object? json
)

Implementation

factory PaymentMethodDetailsIdeal.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentMethodDetailsIdeal(
    bank: map['bank'] == null
        ? null
        : PaymentMethodDetailsIdealBank.fromJson(map['bank']),
    bic: map['bic'] == null
        ? null
        : PaymentMethodDetailsIdealBic.fromJson(map['bic']),
    generatedSepaDebit: map['generated_sepa_debit'] == null
        ? null
        : PaymentMethodOrId.fromJson(map['generated_sepa_debit']),
    generatedSepaDebitMandate: map['generated_sepa_debit_mandate'] == null
        ? null
        : MandateOrId.fromJson(map['generated_sepa_debit_mandate']),
    ibanLast4:
        map['iban_last4'] == null ? null : (map['iban_last4'] as String),
    verifiedName: map['verified_name'] == null
        ? null
        : (map['verified_name'] as String),
  );
}