ProductMaterialResult.fromJson constructor

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

Implementation

factory ProductMaterialResult.fromJson(Map<String, dynamic> json) => ProductMaterialResult(
  headImg: json["headImg"],
  createTime: DateTime.parse(json["createTime"]),
  materialList: List<MaterialList>.from(json["materialList"].map((x) => MaterialList.fromJson(x))),
  name: json["name"],
  hot: json["hot"],
  newest: json["newest"],
);