Implementation
factory DocumentScannerTextLocalization.fromJson(Map<String, dynamic> json) =>
DocumentScannerTextLocalization(
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",
cameraTopBarCancelButtonTitle:
json.containsKey("cameraTopBarCancelButtonTitle")
? json["cameraTopBarCancelButtonTitle"] as String
: "Cancel",
cameraTopBarTitle: json.containsKey("cameraTopBarTitle")
? json["cameraTopBarTitle"] as String
: "Scan Document",
cameraTopGuidance: json.containsKey("cameraTopGuidance")
? json["cameraTopGuidance"] as String
: "Scan each page of your document.",
cameraUserGuidanceStart: json.containsKey("cameraUserGuidanceStart")
? json["cameraUserGuidanceStart"] as String
: "Please hold your device over a document.",
cameraUserGuidanceNoDocumentFound:
json.containsKey("cameraUserGuidanceNoDocumentFound")
? json["cameraUserGuidanceNoDocumentFound"] as String
: "No document found",
cameraUserGuidanceBadAspectRatio:
json.containsKey("cameraUserGuidanceBadAspectRatio")
? json["cameraUserGuidanceBadAspectRatio"] as String
: "Bad aspect ratio",
cameraUserGuidanceBadAngles:
json.containsKey("cameraUserGuidanceBadAngles")
? json["cameraUserGuidanceBadAngles"] as String
: "Bad angles",
cameraUserGuidanceTooNoisy:
json.containsKey("cameraUserGuidanceTooNoisy")
? json["cameraUserGuidanceTooNoisy"] as String
: "Its too noisy. Try another background for the document",
cameraUserGuidanceTextHintOffCenter:
json.containsKey("cameraUserGuidanceTextHintOffCenter")
? json["cameraUserGuidanceTextHintOffCenter"] as String
: "Document is off center",
cameraUserGuidanceTooSmall:
json.containsKey("cameraUserGuidanceTooSmall")
? json["cameraUserGuidanceTooSmall"] as String
: "Document is too small. Move camera closer.",
cameraUserGuidanceTooDark: json.containsKey("cameraUserGuidanceTooDark")
? json["cameraUserGuidanceTooDark"] as String
: "Its too dark. Add more light.",
cameraUserGuidanceEnergySaveMode:
json.containsKey("cameraUserGuidanceEnergySaveMode")
? json["cameraUserGuidanceEnergySaveMode"] as String
: "Energy save mode is on",
cameraUserGuidanceReadyToCapture:
json.containsKey("cameraUserGuidanceReadyToCapture")
? json["cameraUserGuidanceReadyToCapture"] as String
: "Hold still capturing...",
cameraUserGuidanceReadyToCaptureManual:
json.containsKey("cameraUserGuidanceReadyToCaptureManual")
? json["cameraUserGuidanceReadyToCaptureManual"] as String
: "Ready to capture!",
cameraImportButtonTitle: json.containsKey("cameraImportButtonTitle")
? json["cameraImportButtonTitle"] as String
: "Import",
cameraTorchOnButtonTitle: json.containsKey("cameraTorchOnButtonTitle")
? json["cameraTorchOnButtonTitle"] as String
: "On",
cameraTorchOffButtonTitle: json.containsKey("cameraTorchOffButtonTitle")
? json["cameraTorchOffButtonTitle"] as String
: "Off",
cameraAutoSnapButtonTitle: json.containsKey("cameraAutoSnapButtonTitle")
? json["cameraAutoSnapButtonTitle"] as String
: "Auto",
cameraManualSnapButtonTitle:
json.containsKey("cameraManualSnapButtonTitle")
? json["cameraManualSnapButtonTitle"] as String
: "Manual",
cameraPreviewButtonTitle: json.containsKey("cameraPreviewButtonTitle")
? json["cameraPreviewButtonTitle"] as String
: "%d Pages",
cameraIntroDoneButton: json.containsKey("cameraIntroDoneButton")
? json["cameraIntroDoneButton"] as String
: "Done",
cameraIntroTitle: json.containsKey("cameraIntroTitle")
? json["cameraIntroTitle"] as String
: "How to scan a document",
cameraIntroSubtitle: json.containsKey("cameraIntroSubtitle")
? json["cameraIntroSubtitle"] as String
: "Follow the steps below to create a high-quality document scan",
cameraIntroItem1: json.containsKey("cameraIntroItem1")
? json["cameraIntroItem1"] as String
: "1. Place your document on a flat surface.",
cameraIntroItem2: json.containsKey("cameraIntroItem2")
? json["cameraIntroItem2"] as String
: "2. Hold your phone above the document.",
cameraIntroItem3: json.containsKey("cameraIntroItem3")
? json["cameraIntroItem3"] as String
: "3. Follow the on-screen guidance to find the optimal position.",
cameraIntroItem4: json.containsKey("cameraIntroItem4")
? json["cameraIntroItem4"] as String
: "4. Once you reach the optimal position, you can manually scan the document or let the app scan it automatically.",
cameraProgressOverlayTitle:
json.containsKey("cameraProgressOverlayTitle")
? json["cameraProgressOverlayTitle"] as String
: "Please wait...",
cameraCancelAlertTitle: json.containsKey("cameraCancelAlertTitle")
? json["cameraCancelAlertTitle"] as String
: "Cancel?",
cameraCancelAlertSubtitle: json.containsKey("cameraCancelAlertSubtitle")
? json["cameraCancelAlertSubtitle"] as String
: "Canceling will delete all the pages scanned so far. Are you sure you want to cancel?",
cameraCancelNoButtonTitle: json.containsKey("cameraCancelNoButtonTitle")
? json["cameraCancelNoButtonTitle"] as String
: "No",
cameraCancelYesButtonTitle:
json.containsKey("cameraCancelYesButtonTitle")
? json["cameraCancelYesButtonTitle"] as String
: "Yes, Cancel",
cameraLimitReachedAlertTitle:
json.containsKey("cameraLimitReachedAlertTitle")
? json["cameraLimitReachedAlertTitle"] as String
: "You reached the limit!",
cameraLimitReachedAlertSubtitle: json
.containsKey("cameraLimitReachedAlertSubtitle")
? json["cameraLimitReachedAlertSubtitle"] as String
: "You have scanned the maximum number of pages and cannot add any more. Please delete at least one page to perform a new scan.",
cameraLimitReachedOkButtonTitle:
json.containsKey("cameraLimitReachedOkButtonTitle")
? json["cameraLimitReachedOkButtonTitle"] as String
: "Ok",
acknowledgementScreenBadDocumentHint:
json.containsKey("acknowledgementScreenBadDocumentHint")
? json["acknowledgementScreenBadDocumentHint"] as String
: "The quality of your scan does not seem sufficient.",
acknowledgementRetakeButtonTitle:
json.containsKey("acknowledgementRetakeButtonTitle")
? json["acknowledgementRetakeButtonTitle"] as String
: "Retake",
acknowledgementAcceptButtonTitle:
json.containsKey("acknowledgementAcceptButtonTitle")
? json["acknowledgementAcceptButtonTitle"] as String
: "Use Scan",
reviewScreenTitle: json.containsKey("reviewScreenTitle")
? json["reviewScreenTitle"] as String
: "Review (%d)",
reviewTopBarBackButtonTitle:
json.containsKey("reviewTopBarBackButtonTitle")
? json["reviewTopBarBackButtonTitle"] as String
: "Back",
reviewScreenPageCount: json.containsKey("reviewScreenPageCount")
? json["reviewScreenPageCount"] as String
: "Page %d/%d",
reviewScreenAddButtonTitle:
json.containsKey("reviewScreenAddButtonTitle")
? json["reviewScreenAddButtonTitle"] as String
: "Add",
reviewScreenRetakeButtonTitle:
json.containsKey("reviewScreenRetakeButtonTitle")
? json["reviewScreenRetakeButtonTitle"] as String
: "Retake",
reviewScreenCropButtonTitle:
json.containsKey("reviewScreenCropButtonTitle")
? json["reviewScreenCropButtonTitle"] as String
: "Crop",
reviewScreenRotateButtonTitle:
json.containsKey("reviewScreenRotateButtonTitle")
? json["reviewScreenRotateButtonTitle"] as String
: "Rotate",
reviewScreenDeleteButtonTitle:
json.containsKey("reviewScreenDeleteButtonTitle")
? json["reviewScreenDeleteButtonTitle"] as String
: "Delete",
reviewScreenSubmitButtonTitle:
json.containsKey("reviewScreenSubmitButtonTitle")
? json["reviewScreenSubmitButtonTitle"] as String
: "Submit",
reviewScreenDeleteAllButtonTitle:
json.containsKey("reviewScreenDeleteAllButtonTitle")
? json["reviewScreenDeleteAllButtonTitle"] as String
: "Delete all",
reviewScreenReorderPagesButtonTitle:
json.containsKey("reviewScreenReorderPagesButtonTitle")
? json["reviewScreenReorderPagesButtonTitle"] as String
: "Reorder pages",
zoomOverlayCancelButtonText:
json.containsKey("zoomOverlayCancelButtonText")
? json["zoomOverlayCancelButtonText"] as String
: "Close",
reviewDeletePageAlertTitle:
json.containsKey("reviewDeletePageAlertTitle")
? json["reviewDeletePageAlertTitle"] as String
: "Delete page?",
reviewDeleteAllPagesAlertTitle:
json.containsKey("reviewDeleteAllPagesAlertTitle")
? json["reviewDeleteAllPagesAlertTitle"] as String
: "Delete all?",
reviewDeletePageAlertSubTitle:
json.containsKey("reviewDeletePageAlertSubTitle")
? json["reviewDeletePageAlertSubTitle"] as String
: "Are you sure you want to delete the page?",
reviewDeleteAllPagesAlertSubtitle:
json.containsKey("reviewDeleteAllPagesAlertSubtitle")
? json["reviewDeleteAllPagesAlertSubtitle"] as String
: "Are you sure you want to delete all pages?",
reviewDeletePageAlertConfirmButtonTitle:
json.containsKey("reviewDeletePageAlertConfirmButtonTitle")
? json["reviewDeletePageAlertConfirmButtonTitle"] as String
: "Yes, Delete",
reviewDeleteAllPagesAlertDeleteButtonTitle:
json.containsKey("reviewDeleteAllPagesAlertDeleteButtonTitle")
? json["reviewDeleteAllPagesAlertDeleteButtonTitle"] as String
: "Yes, Delete all",
reviewDeletePageAlertDeleteRetakeButtonTitle:
json.containsKey("reviewDeletePageAlertDeleteRetakeButtonTitle")
? json["reviewDeletePageAlertDeleteRetakeButtonTitle"] as String
: "Delete and Retake",
reviewDeletePageAlertCancelButtonTitle:
json.containsKey("reviewDeletePageAlertCancelButtonTitle")
? json["reviewDeletePageAlertCancelButtonTitle"] as String
: "Cancel",
reviewDeleteAllPagesAlertCancelButtonTitle:
json.containsKey("reviewDeleteAllPagesAlertCancelButtonTitle")
? json["reviewDeleteAllPagesAlertCancelButtonTitle"] as String
: "Cancel",
reorderPageTitle: json.containsKey("reorderPageTitle")
? json["reorderPageTitle"] as String
: "Reorder Pages",
reorderPageGuidanceTitle: json.containsKey("reorderPageGuidanceTitle")
? json["reorderPageGuidanceTitle"] as String
: "Drag pages to reorder",
reorderPageText: json.containsKey("reorderPageText")
? json["reorderPageText"] as String
: "%d",
reorderTopBarConfirmButtonTitle:
json.containsKey("reorderTopBarConfirmButtonTitle")
? json["reorderTopBarConfirmButtonTitle"] as String
: "Done",
reorderTopBarCancelButtonTitle:
json.containsKey("reorderTopBarCancelButtonTitle")
? json["reorderTopBarCancelButtonTitle"] as String
: "Cancel",
croppingTopBarConfirmButtonTitle:
json.containsKey("croppingTopBarConfirmButtonTitle")
? json["croppingTopBarConfirmButtonTitle"] as String
: "Done",
croppingTopBarCancelButtonTitle:
json.containsKey("croppingTopBarCancelButtonTitle")
? json["croppingTopBarCancelButtonTitle"] as String
: "Cancel",
croppingDetectButtonTitle: json.containsKey("croppingDetectButtonTitle")
? json["croppingDetectButtonTitle"] as String
: "Detect",
croppingRotateButtonTitle: json.containsKey("croppingRotateButtonTitle")
? json["croppingRotateButtonTitle"] as String
: "Rotate",
croppingResetButtonTitle: json.containsKey("croppingResetButtonTitle")
? json["croppingResetButtonTitle"] as String
: "Reset",
croppingScreenTitle: json.containsKey("croppingScreenTitle")
? json["croppingScreenTitle"] as String
: "Crop",
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",
accessibilityDescriptionCameraTopBarIntroButton: json
.containsKey("accessibilityDescriptionCameraTopBarIntroButton")
? json["accessibilityDescriptionCameraTopBarIntroButton"] as String
: "Tap to open introduction screen",
accessibilityDescriptionCameraTopBarCancelButton: json
.containsKey("accessibilityDescriptionCameraTopBarCancelButton")
? json["accessibilityDescriptionCameraTopBarCancelButton"] as String
: "Tap to close scanner screen",
accessibilityDescriptionCameraImportButton:
json.containsKey("accessibilityDescriptionCameraImportButton")
? json["accessibilityDescriptionCameraImportButton"] as String
: "Tap to import image",
accessibilityDescriptionCameraTorchOnButton:
json.containsKey("accessibilityDescriptionCameraTorchOnButton")
? json["accessibilityDescriptionCameraTorchOnButton"] as String
: "Tap to disable torch",
accessibilityDescriptionCameraTorchOffButton:
json.containsKey("accessibilityDescriptionCameraTorchOffButton")
? json["accessibilityDescriptionCameraTorchOffButton"] as String
: "Tap to enable torch",
accessibilityDescriptionCameraShutterButton:
json.containsKey("accessibilityDescriptionCameraShutterButton")
? json["accessibilityDescriptionCameraShutterButton"] as String
: "Tap to take image",
accessibilityDescriptionCameraAutoSnapButton:
json.containsKey("accessibilityDescriptionCameraAutoSnapButton")
? json["accessibilityDescriptionCameraAutoSnapButton"] as String
: "Tap to enable manual snapping mode",
accessibilityDescriptionCameraManualSnapButton: json
.containsKey("accessibilityDescriptionCameraManualSnapButton")
? json["accessibilityDescriptionCameraManualSnapButton"] as String
: "Tap to enable auto snapping mode",
accessibilityDescriptionCameraPreviewButton:
json.containsKey("accessibilityDescriptionCameraPreviewButton")
? json["accessibilityDescriptionCameraPreviewButton"] as String
: "Tap to preview scanned pages",
accessibilityDescriptionCameraIntroDoneButton: json
.containsKey("accessibilityDescriptionCameraIntroDoneButton")
? json["accessibilityDescriptionCameraIntroDoneButton"] as String
: "Tap to close introduction screen",
accessibilityDescriptionAcknowledgementRetakeButton: json.containsKey(
"accessibilityDescriptionAcknowledgementRetakeButton")
? json["accessibilityDescriptionAcknowledgementRetakeButton"]
as String
: "Tap to retake the image",
accessibilityDescriptionAcknowledgementAcceptButton: json.containsKey(
"accessibilityDescriptionAcknowledgementAcceptButton")
? json["accessibilityDescriptionAcknowledgementAcceptButton"]
as String
: "Tap to accept the image regardless of its quality",
accessibilityDescriptionCroppingTopBarConfirmButton: json.containsKey(
"accessibilityDescriptionCroppingTopBarConfirmButton")
? json["accessibilityDescriptionCroppingTopBarConfirmButton"]
as String
: "Tap to apply changes",
accessibilityDescriptionCroppingTopBarCancelButton: json.containsKey(
"accessibilityDescriptionCroppingTopBarCancelButton")
? json["accessibilityDescriptionCroppingTopBarCancelButton"]
as String
: "Tap to close screen without applying changes",
accessibilityDescriptionCroppingDetectButton:
json.containsKey("accessibilityDescriptionCroppingDetectButton")
? json["accessibilityDescriptionCroppingDetectButton"] as String
: "Tap to detect document on the image",
accessibilityDescriptionCroppingRotateButton:
json.containsKey("accessibilityDescriptionCroppingRotateButton")
? json["accessibilityDescriptionCroppingRotateButton"] as String
: "Tap to rotate document",
accessibilityDescriptionCroppingResetButton:
json.containsKey("accessibilityDescriptionCroppingResetButton")
? json["accessibilityDescriptionCroppingResetButton"] as String
: "Tap to reset document contour to whole image",
accessibilityDescriptionReorderTopBarConfirmButton: json.containsKey(
"accessibilityDescriptionReorderTopBarConfirmButton")
? json["accessibilityDescriptionReorderTopBarConfirmButton"]
as String
: "Tap to apply changes",
accessibilityDescriptionReorderTopBarCancelButton: json.containsKey(
"accessibilityDescriptionReorderTopBarCancelButton")
? json["accessibilityDescriptionReorderTopBarCancelButton"]
as String
: "Tap to close screen without applying changes",
accessibilityDescriptionReviewNextPageButton:
json.containsKey("accessibilityDescriptionReviewNextPageButton")
? json["accessibilityDescriptionReviewNextPageButton"] as String
: "Tap to switch to the new page",
accessibilityDescriptionReviewPreviousPageButton: json
.containsKey("accessibilityDescriptionReviewPreviousPageButton")
? json["accessibilityDescriptionReviewPreviousPageButton"] as String
: "Tap to switch to the previous page",
accessibilityDescriptionReviewAddButton:
json.containsKey("accessibilityDescriptionReviewAddButton")
? json["accessibilityDescriptionReviewAddButton"] as String
: "Tap to Add new page",
accessibilityDescriptionReviewRetakeButton:
json.containsKey("accessibilityDescriptionReviewRetakeButton")
? json["accessibilityDescriptionReviewRetakeButton"] as String
: "Tap to Retake current selected page",
accessibilityDescriptionReviewCropButton:
json.containsKey("accessibilityDescriptionReviewCropButton")
? json["accessibilityDescriptionReviewCropButton"] as String
: "Tap to Crop selected page",
accessibilityDescriptionReviewRotateButton:
json.containsKey("accessibilityDescriptionReviewRotateButton")
? json["accessibilityDescriptionReviewRotateButton"] as String
: "Tap to Rotate selected page clockwise",
accessibilityDescriptionReviewDeleteButton:
json.containsKey("accessibilityDescriptionReviewDeleteButton")
? json["accessibilityDescriptionReviewDeleteButton"] as String
: "Tap to Delete selected page",
accessibilityDescriptionReviewSubmitButton:
json.containsKey("accessibilityDescriptionReviewSubmitButton")
? json["accessibilityDescriptionReviewSubmitButton"] as String
: "Tap to Submit document",
accessibilityDescriptionReviewMoreButton:
json.containsKey("accessibilityDescriptionReviewMoreButton")
? json["accessibilityDescriptionReviewMoreButton"] as String
: "Tap to show additional options",
accessibilityDescriptionReviewDeleteAllButton: json
.containsKey("accessibilityDescriptionReviewDeleteAllButton")
? json["accessibilityDescriptionReviewDeleteAllButton"] as String
: "Tap to Delete all pages",
accessibilityDescriptionReviewReorderPagesButton: json
.containsKey("accessibilityDescriptionReviewReorderPagesButton")
? json["accessibilityDescriptionReviewReorderPagesButton"] as String
: "Tap to Reorder pages",
accessibilityDescriptionZoomOverlayCancelButton: json
.containsKey("accessibilityDescriptionZoomOverlayCancelButton")
? json["accessibilityDescriptionZoomOverlayCancelButton"] as String
: "Tap to Close zoom overlay",
accessibilityDescriptionReviewZoomButton:
json.containsKey("accessibilityDescriptionReviewZoomButton")
? json["accessibilityDescriptionReviewZoomButton"] as String
: "Tap to open zoom overlay for selected page",
accessibilityDescriptionReviewTopBarBackButton: json
.containsKey("accessibilityDescriptionReviewTopBarBackButton")
? json["accessibilityDescriptionReviewTopBarBackButton"] as String
: "Tap to Close review screen",
accessibilityDescriptionReviewDeletePageAlertConfirmButton: json
.containsKey(
"accessibilityDescriptionReviewDeletePageAlertConfirmButton")
? json["accessibilityDescriptionReviewDeletePageAlertConfirmButton"]
as String
: "Tap to Delete page",
accessibilityDescriptionReviewDeleteAllPagesAlertDeleteButton: json
.containsKey(
"accessibilityDescriptionReviewDeleteAllPagesAlertDeleteButton")
? json["accessibilityDescriptionReviewDeleteAllPagesAlertDeleteButton"]
as String
: "Tap to Delete all pages",
accessibilityDescriptionReviewDeletePageAlertDeleteRetakeButton: json
.containsKey(
"accessibilityDescriptionReviewDeletePageAlertDeleteRetakeButton")
? json["accessibilityDescriptionReviewDeletePageAlertDeleteRetakeButton"]
as String
: "Tap to Delete page and Retake it",
accessibilityDescriptionReviewDeletePageAlertCancelButton: json
.containsKey(
"accessibilityDescriptionReviewDeletePageAlertCancelButton")
? json["accessibilityDescriptionReviewDeletePageAlertCancelButton"]
as String
: "Tap to Cancel operation",
accessibilityDescriptionReviewDeleteAllPagesAlertCancelButton: json
.containsKey(
"accessibilityDescriptionReviewDeleteAllPagesAlertCancelButton")
? json["accessibilityDescriptionReviewDeleteAllPagesAlertCancelButton"]
as String
: "Tap to Cancel operation",
accessibilityDescriptionCameraLimitReachedOkButton: json.containsKey(
"accessibilityDescriptionCameraLimitReachedOkButton")
? json["accessibilityDescriptionCameraLimitReachedOkButton"]
as String
: "Tap to close alert dialog",
accessibilityDescriptionCameraCancelYesButton: json
.containsKey("accessibilityDescriptionCameraCancelYesButton")
? json["accessibilityDescriptionCameraCancelYesButton"] as String
: "Tap to cancel document",
accessibilityDescriptionCameraCancelNoButton:
json.containsKey("accessibilityDescriptionCameraCancelNoButton")
? json["accessibilityDescriptionCameraCancelNoButton"] as String
: "Tap to close alert dialog",
);