UserGuidanceConfiguration.fromJson constructor

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

Implementation

factory UserGuidanceConfiguration.fromJson(Map<String, dynamic> json) =>
    UserGuidanceConfiguration(
      visible: json.containsKey("visible") ? (json["visible"] as bool) : true,
      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(
              strokeColor: ScanbotColor("#00000000"),
              fillColor: ScanbotColor("?sbColorSurfaceLow")),
    );