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