BusinessProduct.fromJson constructor
BusinessProduct.fromJson(
- Map<String, dynamic> json
)
Implementation
factory BusinessProduct.fromJson(Map<String, dynamic> json) =>
BusinessProduct(
hidePrice: json["hidePrice"] ?? false,
showReview: json["showReview"] ?? false,
aspectRatio: json["aspectRatio"] ?? [],
showCategory: json["showCategory"] ?? false,
showVariants: json["showVariants"] ?? false,
showSubCategory: json["showSubCategory"] ?? false,
availableForSubscription: json["availableForSubscription"] ?? false,
);