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