PaymentMethodNetworks.fromJson constructor

PaymentMethodNetworks.fromJson(
  1. Object? json
)

Implementation

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