PaymentMethodUpdateOptionsCardNetworks.fromJson constructor

PaymentMethodUpdateOptionsCardNetworks.fromJson(
  1. Object? json
)

Implementation

factory PaymentMethodUpdateOptionsCardNetworks.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentMethodUpdateOptionsCardNetworks(
      preferred: map['preferred'] == null
          ? null
          : PaymentMethodUpdateOptionsCardNetworksPreferred.fromJson(
              map['preferred']));
}