PaymentMethodUsBankAccountNetworks.fromJson constructor

PaymentMethodUsBankAccountNetworks.fromJson(
  1. Object? json
)

Implementation

factory PaymentMethodUsBankAccountNetworks.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentMethodUsBankAccountNetworks(
    preferred: map['preferred'] == null ? null : (map['preferred'] as String),
    supported: (map['supported'] as List<Object?>)
        .map((el) =>
            OutboundPaymentsPaymentMethodDetailsUsBankAccountNetwork.fromJson(
                el))
        .toList(),
  );
}