HomeGrid.fromMap constructor

HomeGrid.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory HomeGrid.fromMap(Map<String, dynamic> json) => HomeGrid(
  totalItem: json["total_item"],
  btnBgColor: json["btn_bg_color"],
  showBtn: json["show_btn"],
  titleClass: json["title_class"],
  title: json["title"],
  subtitleClass: json["subtitle_class"],
  btnStyles: json["btn_styles"],
  prodTitleClass: json["prod_title_class"],
  subtitleStyles: json["subtitle_styles"],
  productPriceTextColor: json["product_price_text_color"],
  prodPriceClass: json["prod_price_class"],
  sectionType: json["section_type"],
  id: json["id"],
  btnText: json["btn_text"],
  subtitleColor: json["subtitle_color"],
  titleColor: json["title_color"],
  collection: json["collection"] == null ? null : HomeGridCollection.fromMap(json["collection"]),
  prodTitleStyles: json["prod_title_styles"],
  btnTextColor: json["btn_text_color"],
  prodPriceStyles: json["prod_price_styles"],
  showSubtitle: json["show_subtitle"],
  showTitle: json["show_title"],
  subtitle: json["subtitle"],
  titleStyles: json["title_styles"],
  productTitleColor: json["product_title_color"],
  position: json["position"],
  showRandomItems: json["show_random_items"],
  btnClass: json["btn_class"],
);