PaymentIntentBacsDebit.fromJson constructor

PaymentIntentBacsDebit.fromJson(
  1. Object? json
)

Implementation

factory PaymentIntentBacsDebit.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentIntentBacsDebit(
    accountNumber: map['account_number'] == null
        ? null
        : (map['account_number'] as String),
    sortCode: map['sort_code'] == null ? null : (map['sort_code'] as String),
  );
}