# AcknowledgementScreenConfiguration.fromJson constructor

AcknowledgementScreenConfiguration.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory AcknowledgementScreenConfiguration.fromJson(
            Map<String, dynamic> json) =>
        AcknowledgementScreenConfiguration(
          minimumQuality: json.containsKey("minimumQuality")
              ? DocumentQuality.values.byName(json["minimumQuality"] as String)
              : DocumentQuality.POOR,
          acknowledgementMode: json.containsKey("acknowledgementMode")
              ? AcknowledgementMode.values
                  .byName(json["acknowledgementMode"] as String)
              : AcknowledgementMode.ALWAYS,
          badImageHint: json.containsKey("badImageHint")
              ? IconUserGuidanceConfiguration.fromJson(
                  json["badImageHint"] as Map<String, dynamic>)
              : IconUserGuidanceConfiguration(
                  visible: true,
                  icon: IconStyle(color: ScanbotColor("?sbColorOnPrimary")),
                  title: StyledText(
                      text: "?acknowledgementScreenBadDocumentHint",
                      color: ScanbotColor("?sbColorOnPrimary")),
                  background: BackgroundStyle(
                      strokeColor: ScanbotColor("?sbColorNegative"),
                      fillColor: ScanbotColor("?sbColorNegative"),
                      strokeWidth: 0.0)),
          backgroundColor: json.containsKey("backgroundColor")
              ? ScanbotColor(json["backgroundColor"] as String)
              : ScanbotColor("?sbColorOutline"),
          bottomBar: json.containsKey("bottomBar")
              ? AcknowledgementBottomBar.fromJson(
                  json["bottomBar"] as Map<String, dynamic>)
              : AcknowledgementBottomBar(),
        );