# DocumentScannerUserGuidance.fromJson constructor

DocumentScannerUserGuidance.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory DocumentScannerUserGuidance.fromJson(Map<String, dynamic> json) =>
        DocumentScannerUserGuidance(
          visibility: json.containsKey("visibility")
              ? UserGuidanceVisibility.values.byName(json["visibility"] as String)
              : UserGuidanceVisibility.ENABLED,
          title: json.containsKey("title")
              ? StyledText.fromJson(json["title"] as Map<String, dynamic>)
              : StyledText(
                  text: "?cameraUserGuidanceStart",
                  color: ScanbotColor("?sbColorOnPrimary")),
          background: json.containsKey("background")
              ? BackgroundStyle.fromJson(
                  json["background"] as Map<String, dynamic>)
              : BackgroundStyle(
                  strokeColor: ScanbotColor("#00000000"),
                  fillColor: ScanbotColor("?sbColorSurfaceHigh")),
          statesTitles: json.containsKey("statesTitles")
              ? UserGuidanceStates.fromJson(
                  json["statesTitles"] as Map<String, dynamic>)
              : UserGuidanceStates(),
        );