PaymentMethodDetailsSepaCreditTransfer.fromJson constructor

PaymentMethodDetailsSepaCreditTransfer.fromJson(
  1. Object? json
)

Implementation

factory PaymentMethodDetailsSepaCreditTransfer.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentMethodDetailsSepaCreditTransfer(
    bankName: map['bank_name'] == null ? null : (map['bank_name'] as String),
    bic: map['bic'] == null ? null : (map['bic'] as String),
    iban: map['iban'] == null ? null : (map['iban'] as String),
  );
}