# ScanCompletionOverlay.fromJson constructor

ScanCompletionOverlay.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory ScanCompletionOverlay.fromJson(Map<String, dynamic> json) =>
        ScanCompletionOverlay(
          message: json.containsKey("message")
              ? StyledText.fromJson(json["message"] as Map<String, dynamic>)
              : StyledText(
                  text: "?completionOverlaySuccessMessage",
                  color: ScanbotColor("?sbColorOnPrimary")),
          iconColor: json.containsKey("iconColor")
              ? ScanbotColor(json["iconColor"] as String)
              : ScanbotColor("?sbColorOnPrimary"),
          overlayBackgroundColor: json.containsKey("overlayBackgroundColor")
              ? ScanbotColor(json["overlayBackgroundColor"] as String)
              : ScanbotColor("?sbColorSurfaceHigh"),
          timeout: json.containsKey("timeout") ? (json["timeout"] as int) : 1000,
        );