# MrzScannerScreenTextLocalization.fromJson constructor

MrzScannerScreenTextLocalization.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory MrzScannerScreenTextLocalization.fromJson(
            Map<String, dynamic> json) =>
        MrzScannerScreenTextLocalization(
          topBarTitle: json.containsKey("topBarTitle")
              ? json["topBarTitle"] as String
              : "MRZ Scanner",
          topBarCancelButton: json.containsKey("topBarCancelButton")
              ? json["topBarCancelButton"] as String
              : "Cancel",
          topUserGuidance: json.containsKey("topUserGuidance")
              ? json["topUserGuidance"] as String
              : "Scan your Identity Document",
          finderViewUserGuidance: json.containsKey("finderViewUserGuidance")
              ? json["finderViewUserGuidance"] as String
              : "Scan the MRZ",
          introScreenTitle: json.containsKey("introScreenTitle")
              ? json["introScreenTitle"] as String
              : "How to scan an MRZ",
          introScreenDoneButton: json.containsKey("introScreenDoneButton")
              ? json["introScreenDoneButton"] as String
              : "Start Scanning",
          introScreenText: json.containsKey("introScreenText")
              ? json["introScreenText"] as String
              : "The Machine Readable Zone (MRZ) is a special code on your ID document (such as a passport or ID card) that contains your personal information in a machine-readable format.\n\nTo scan it, simply hold your camera over the document, so that it aligns with the MRZ section. Once scanned, the data will be automatically processed, and you will be directed to the results screen.\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",
          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",
        );