WatchFaceLayoutBean.fromJson constructor
WatchFaceLayoutBean.fromJson(
- Map<String, dynamic> json
)
Implementation
factory WatchFaceLayoutBean.fromJson(Map<String, dynamic> json) {
Color newTextColor = ColorUtils().decimalToColor(json["textColor"]);
return WatchFaceLayoutBean(
backgroundPictureMd5: json["backgroundPictureMd5"],
compressionType: json["compressionType"],
height: json["height"],
textColor: newTextColor,
thumHeight: json["thumHeight"],
thumWidth: json["thumWidth"],
timeBottomContent: json["timeBottomContent"],
timePosition: json["timePosition"],
timeTopContent: json["timeTopContent"],
width: json["width"],
);
}