# ArOverlayPolygonConfiguration.fromJson constructor

ArOverlayPolygonConfiguration.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory ArOverlayPolygonConfiguration.fromJson(Map<String, dynamic> json) =>
        ArOverlayPolygonConfiguration(
          visible: json.containsKey("visible") ? (json["visible"] as bool) : true,
          deselected: json.containsKey("deselected")
              ? PolygonStyle.fromJson(json["deselected"] as Map<String, dynamic>)
              : PolygonStyle(
                  strokeColor: ScanbotColor("?sbColorSurface"),
                  fillColor: ScanbotColor("#00000000"),
                  strokeWidth: 2.0,
                  cornerRadius: 2.0),
          selected: json.containsKey("selected")
              ? PolygonStyle.fromJson(json["selected"] as Map<String, dynamic>)
              : PolygonStyle(
                  strokeColor: ScanbotColor("?sbColorPositive"),
                  fillColor: ScanbotColor("#00000000"),
                  strokeWidth: 2.0,
                  cornerRadius: 2.0),
        );