UsBankAccountNetworks.fromJson constructor

UsBankAccountNetworks.fromJson(
  1. Object? json
)

Implementation

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