SourceTypeBancontact.fromJson constructor

SourceTypeBancontact.fromJson(
  1. Object? json
)

Implementation

factory SourceTypeBancontact.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return SourceTypeBancontact(
    bankCode: map['bank_code'] == null ? null : (map['bank_code'] as String),
    bankName: map['bank_name'] == null ? null : (map['bank_name'] as String),
    bic: map['bic'] == null ? null : (map['bic'] as String),
    ibanLast4:
        map['iban_last4'] == null ? null : (map['iban_last4'] as String),
    preferredLanguage: map['preferred_language'] == null
        ? null
        : (map['preferred_language'] as String),
    statementDescriptor: map['statement_descriptor'] == null
        ? null
        : (map['statement_descriptor'] as String),
  );
}