SourceTypeSepaCreditTransfer.fromJson constructor

SourceTypeSepaCreditTransfer.fromJson(
  1. Object? json
)

Implementation

factory SourceTypeSepaCreditTransfer.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return SourceTypeSepaCreditTransfer(
    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),
    refundAccountHolderAddressCity:
        map['refund_account_holder_address_city'] == null
            ? null
            : (map['refund_account_holder_address_city'] as String),
    refundAccountHolderAddressCountry:
        map['refund_account_holder_address_country'] == null
            ? null
            : (map['refund_account_holder_address_country'] as String),
    refundAccountHolderAddressLine1:
        map['refund_account_holder_address_line1'] == null
            ? null
            : (map['refund_account_holder_address_line1'] as String),
    refundAccountHolderAddressLine2:
        map['refund_account_holder_address_line2'] == null
            ? null
            : (map['refund_account_holder_address_line2'] as String),
    refundAccountHolderAddressPostalCode:
        map['refund_account_holder_address_postal_code'] == null
            ? null
            : (map['refund_account_holder_address_postal_code'] as String),
    refundAccountHolderAddressState:
        map['refund_account_holder_address_state'] == null
            ? null
            : (map['refund_account_holder_address_state'] as String),
    refundAccountHolderName: map['refund_account_holder_name'] == null
        ? null
        : (map['refund_account_holder_name'] as String),
    refundIban:
        map['refund_iban'] == null ? null : (map['refund_iban'] as String),
  );
}