ShopifyProduct.fromJson constructor

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

Implementation

ShopifyProduct.fromJson(Map<String, dynamic> json) {
  if (json['products'] != null) {
    products = [];
    json['products'].forEach((v) {
      products!.add(new Products.fromJson(v));
    });
  }
  if (json['page_link'] != null) {
    this.pageLink = Link.fromJson(json['page_link']);
  }
}