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