HotdayResult.fromJson constructor

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

Implementation

factory HotdayResult.fromJson(Map<String, dynamic> json) => HotdayResult(
  totalNum: json["totalNum"],
  list: List<Product>.from(json["list"].map((x) => Product.fromJson(x))),
  pageId: json["pageId"],
);