# ScanAssistanceOverlay.fromJson constructor

ScanAssistanceOverlay.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory ScanAssistanceOverlay.fromJson(Map<String, dynamic> json) =>
        ScanAssistanceOverlay(
          visible: json.containsKey("visible") ? (json["visible"] as bool) : true,
          backgroundColor: json.containsKey("backgroundColor")
              ? ScanbotColor(json["backgroundColor"] as String)
              : ScanbotColor("?sbColorModalOverlay"),
          foregroundColor: json.containsKey("foregroundColor")
              ? ScanbotColor(json["foregroundColor"] as String)
              : ScanbotColor("?sbColorSurface"),
        );