PaymentMethodAcssDebit.fromJson constructor

PaymentMethodAcssDebit.fromJson(
  1. Object? json
)

Implementation

factory PaymentMethodAcssDebit.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentMethodAcssDebit(
    bankName: map['bank_name'] == null ? null : (map['bank_name'] as String),
    fingerprint:
        map['fingerprint'] == null ? null : (map['fingerprint'] as String),
    institutionNumber: map['institution_number'] == null
        ? null
        : (map['institution_number'] as String),
    last4: map['last4'] == null ? null : (map['last4'] as String),
    transitNumber: map['transit_number'] == null
        ? null
        : (map['transit_number'] as String),
  );
}