PaymentMethodUsBankAccountBlocked.fromJson constructor

PaymentMethodUsBankAccountBlocked.fromJson(
  1. Object? json
)

Implementation

factory PaymentMethodUsBankAccountBlocked.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentMethodUsBankAccountBlocked(
    networkCode: map['network_code'] == null
        ? null
        : PaymentMethodUsBankAccountBlockedNetworkCode.fromJson(
            map['network_code']),
    reason: map['reason'] == null
        ? null
        : PaymentMethodUsBankAccountBlockedReason.fromJson(map['reason']),
  );
}