IconUserGuidanceConfiguration.fromJson constructor
IconUserGuidanceConfiguration.fromJson(
- Map<String, dynamic> json
)
Implementation
factory IconUserGuidanceConfiguration.fromJson(Map<String, dynamic> json) =>
IconUserGuidanceConfiguration(
visible: json.containsKey("visible") ? (json["visible"] as bool) : true,
icon: json.containsKey("icon")
? IconStyle.fromJson(json["icon"] as Map<String, dynamic>)
: IconStyle(color: ScanbotColor("?sbColorOnPrimary")),
title: json.containsKey("title")
? StyledText.fromJson(json["title"] as Map<String, dynamic>)
: StyledText(color: ScanbotColor("?sbColorOnPrimary")),
background: json.containsKey("background")
? BackgroundStyle.fromJson(
json["background"] as Map<String, dynamic>)
: BackgroundStyle(fillColor: ScanbotColor("?sbColorSurfaceLow")),
);