AcknowledgementBottomBar.fromJson constructor

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

Implementation

factory AcknowledgementBottomBar.fromJson(Map<String, dynamic> json) =>
    AcknowledgementBottomBar(
      retakeButton: json.containsKey("retakeButton")
          ? BarButtonConfiguration.fromJson(
              json["retakeButton"] as Map<String, dynamic>)
          : BarButtonConfiguration(
              title: StyledText(
                  text: "?acknowledgementRetakeButtonTitle",
                  color: ScanbotColor("?sbColorOnPrimary")),
              accessibilityDescription:
                  "?accessibilityDescriptionAcknowledgementRetakeButton",
              background: BackgroundStyle(
                  strokeColor: ScanbotColor("#00000000"),
                  fillColor: ScanbotColor("#00000000"),
                  strokeWidth: 0.0),
              icon: IconStyle(color: ScanbotColor("?sbColorOnPrimary"))),
      acceptWhenOkButton: json.containsKey("acceptWhenOkButton")
          ? BarButtonConfiguration.fromJson(
              json["acceptWhenOkButton"] as Map<String, dynamic>)
          : BarButtonConfiguration(
              title: StyledText(
                  text: "?acknowledgementAcceptButtonTitle",
                  color: ScanbotColor("?sbColorOnPrimary")),
              accessibilityDescription:
                  "?accessibilityDescriptionAcknowledgementAcceptButton",
              background: BackgroundStyle(
                  strokeColor: ScanbotColor("#00000000"),
                  fillColor: ScanbotColor("#00000000"),
                  strokeWidth: 0.0),
              icon: IconStyle(color: ScanbotColor("?sbColorOnPrimary"))),
      acceptWhenNotOkButton: json.containsKey("acceptWhenNotOkButton")
          ? BarButtonConfiguration.fromJson(
              json["acceptWhenNotOkButton"] as Map<String, dynamic>)
          : BarButtonConfiguration(
              title: StyledText(
                  text: "?acknowledgementAcceptButtonTitle",
                  color: ScanbotColor("?sbColorOnPrimary")),
              accessibilityDescription:
                  "?accessibilityDescriptionAcknowledgementAcceptButton",
              background: BackgroundStyle(
                  strokeColor: ScanbotColor("#00000000"),
                  fillColor: ScanbotColor("#00000000"),
                  strokeWidth: 0.0),
              icon: IconStyle(color: ScanbotColor("?sbColorOnPrimary"))),
    );