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