PaymentLinksResourceShippingAddressCollection.fromJson constructor

PaymentLinksResourceShippingAddressCollection.fromJson(
  1. 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());
}