# ZoomOverlay.fromJson constructor

ZoomOverlay.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory ZoomOverlay.fromJson(Map<String, dynamic> json) => ZoomOverlay(
          overlayColor: json.containsKey("overlayColor")
              ? ScanbotColor(json["overlayColor"] as String)
              : ScanbotColor("?sbColorModalOverlay"),
          closeButton: json.containsKey("closeButton")
              ? ButtonConfiguration.fromJson(
                  json["closeButton"] as Map<String, dynamic>)
              : ButtonConfiguration(
                  text: "?zoomOverlayCancelButtonText",
                  accessibilityDescription:
                      "?accessibilityDescriptionZoomOverlayCancelButton",
                  background: BackgroundStyle(
                      fillColor: ScanbotColor("#00000000"), strokeWidth: 0.0),
                  foreground:
                      ForegroundStyle(color: ScanbotColor("?sbColorOnPrimary"))),
        );