ShopifyCountryResponse.fromJson constructor

ShopifyCountryResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

ShopifyCountryResponse.fromJson(Map<String, dynamic> json) {
  if (json['countries'] != null) {
    countries = <ShopifyCountry>[];
    json['countries'].forEach((v) {
      countries!.add(ShopifyCountry.fromJson(v));
    });
  }
}