PaymentMethodCardPresentNetworks.fromJson constructor
PaymentMethodCardPresentNetworks.fromJson(
- Object? json
Implementation
factory PaymentMethodCardPresentNetworks.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentMethodCardPresentNetworks(
available: (map['available'] as List<Object?>)
.map((el) => (el as String))
.toList(),
preferred: map['preferred'] == null ? null : (map['preferred'] as String),
);
}