StyledText.fromJson constructor
Implementation
factory StyledText.fromJson(Map<String, dynamic> json) => StyledText(
visible: json.containsKey("visible") ? (json["visible"] as bool) : true,
text: json.containsKey("text") ? json["text"] as String : "",
color: json.containsKey("color")
? ScanbotColor(json["color"] as String)
: ScanbotColor("#FFFFFF"),
useShadow:
json.containsKey("useShadow") ? (json["useShadow"] as bool) : false,
);