# TextPatternScannerScreenTextLocalization.fromJson constructor

TextPatternScannerScreenTextLocalization.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory TextPatternScannerScreenTextLocalization.fromJson(
            Map<String, dynamic> json) =>
        TextPatternScannerScreenTextLocalization(
          topBarTitle: json.containsKey("topBarTitle")
              ? json["topBarTitle"] as String
              : "Text Scanner",
          topBarCancelButton: json.containsKey("topBarCancelButton")
              ? json["topBarCancelButton"] as String
              : "Cancel",
          topUserGuidance: json.containsKey("topUserGuidance")
              ? json["topUserGuidance"] as String
              : "Locate the text you are looking for",
          finderViewUserGuidance: json.containsKey("finderViewUserGuidance")
              ? json["finderViewUserGuidance"] as String
              : "Scanning for text pattern...",
          introScreenTitle: json.containsKey("introScreenTitle")
              ? json["introScreenTitle"] as String
              : "How to scan text",
          introScreenDoneButton: json.containsKey("introScreenDoneButton")
              ? json["introScreenDoneButton"] as String
              : "Start Scanning",
          introScreenText: json.containsKey("introScreenText")
              ? json["introScreenText"] as String
              : "To scan a single line of text, please hold your device so that the camera viewfinder clearly captures the text you want to scan. Please ensure the text is properly aligned. Once the scan is complete, the text will be automatically extracted.\n\nPress 'Start Scanning' to begin.",
          completionOverlaySuccessMessage:
              json.containsKey("completionOverlaySuccessMessage")
                  ? json["completionOverlaySuccessMessage"] as String
                  : "Scanned successfully",
          accessibilityDescriptionOpenIntroScreenButton: json
                  .containsKey("accessibilityDescriptionOpenIntroScreenButton")
              ? json["accessibilityDescriptionOpenIntroScreenButton"] as String
              : "Open introduction screen.",
          accessibilityDescriptionIntroScreenDoneButton: json
                  .containsKey("accessibilityDescriptionIntroScreenDoneButton")
              ? json["accessibilityDescriptionIntroScreenDoneButton"] as String
              : "Start scanning",
          accessibilityDescriptionCancelButton:
              json.containsKey("accessibilityDescriptionCancelButton")
                  ? json["accessibilityDescriptionCancelButton"] as String
                  : "Cancel",
          textPatternConfirmationAlertTitle:
              json.containsKey("textPatternConfirmationAlertTitle")
                  ? json["textPatternConfirmationAlertTitle"] as String
                  : "Text Detected!",
          textPatternConfirmationAlertCancelButton:
              json.containsKey("textPatternConfirmationAlertCancelButton")
                  ? json["textPatternConfirmationAlertCancelButton"] as String
                  : "Retry",
          textPatternConfirmationAlertSubmitButton:
              json.containsKey("textPatternConfirmationAlertSubmitButton")
                  ? json["textPatternConfirmationAlertSubmitButton"] as String
                  : "Submit",
          accessibilityDescriptionConfirmationCancelButton: json
                  .containsKey("accessibilityDescriptionConfirmationCancelButton")
              ? json["accessibilityDescriptionConfirmationCancelButton"] as String
              : "Retry",
          accessibilityDescriptionConfirmationSubmitButton: json
                  .containsKey("accessibilityDescriptionConfirmationSubmitButton")
              ? json["accessibilityDescriptionConfirmationSubmitButton"] as String
              : "Submit",
          accessibilityDescriptionFlashButton:
              json.containsKey("accessibilityDescriptionFlashButton")
                  ? json["accessibilityDescriptionFlashButton"] as String
                  : "Toggle flash",
          accessibilityDescriptionZoomButton:
              json.containsKey("accessibilityDescriptionZoomButton")
                  ? json["accessibilityDescriptionZoomButton"] as String
                  : "Toggle camera zoom",
          accessibilityDescriptionFlipCameraButton:
              json.containsKey("accessibilityDescriptionFlipCameraButton")
                  ? json["accessibilityDescriptionFlipCameraButton"] as String
                  : "Flip camera",
          cameraPermissionEnableCameraTitle:
              json.containsKey("cameraPermissionEnableCameraTitle")
                  ? json["cameraPermissionEnableCameraTitle"] as String
                  : "Camera permission denied!",
          cameraPermissionEnableCameraExplanation: json
                  .containsKey("cameraPermissionEnableCameraExplanation")
              ? json["cameraPermissionEnableCameraExplanation"] as String
              : "Please allow the usage of the camera to start the scanning process.",
          cameraPermissionEnableCameraButton:
              json.containsKey("cameraPermissionEnableCameraButton")
                  ? json["cameraPermissionEnableCameraButton"] as String
                  : "Grant permission",
          cameraPermissionCloseButton:
              json.containsKey("cameraPermissionCloseButton")
                  ? json["cameraPermissionCloseButton"] as String
                  : "Close",
          accessibilityDescriptionCameraPermissionEnableCameraButton: json
                  .containsKey(
                      "accessibilityDescriptionCameraPermissionEnableCameraButton")
              ? json["accessibilityDescriptionCameraPermissionEnableCameraButton"]
                  as String
              : "Tap to grant camera permission",
          accessibilityDescriptionCameraPermissionCloseButton: json.containsKey(
                  "accessibilityDescriptionCameraPermissionCloseButton")
              ? json["accessibilityDescriptionCameraPermissionCloseButton"]
                  as String
              : "Close screen without granting permission",
        );