WatchFaceDetailsBean.fromJson constructor

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

Implementation

factory WatchFaceDetailsBean.fromJson(Map<String, dynamic> json) =>
    WatchFaceDetailsBean(
      id: json["id"] ?? -1,
      name: json["name"] ?? "",
      download: json["download"] ?? -1,
      size: json["size"] ?? -1,
      file: json["file"] ?? "",
      preview: json["preview"] ?? "",
      remarkCn: json["remarkCn"] ?? "",
      remarkEn: json["remarkEn"] ?? "",
      recommendWatchFaceList: List<RecommendWatchFaceBean>.from(
        (json["recommendWatchFaceList"] ?? []).map(
          (x) => RecommendWatchFaceBean.fromJson(x),
        ),
      ),
    );