CheckScannerScreenTextLocalization.fromJson constructor
CheckScannerScreenTextLocalization.fromJson( - Map<String, dynamic> json
)
Implementation
factory CheckScannerScreenTextLocalization.fromJson(
Map<String, dynamic> json) =>
CheckScannerScreenTextLocalization(
topBarTitle: json.containsKey("topBarTitle")
? json["topBarTitle"] as String
: "Check Scanner",
topBarCancelButton: json.containsKey("topBarCancelButton")
? json["topBarCancelButton"] as String
: "Cancel",
topUserGuidance: json.containsKey("topUserGuidance")
? json["topUserGuidance"] as String
: "Point the camera at the check",
finderViewUserGuidance: json.containsKey("finderViewUserGuidance")
? json["finderViewUserGuidance"] as String
: "Looking for check...",
introScreenTitle: json.containsKey("introScreenTitle")
? json["introScreenTitle"] as String
: "How to scan a check",
introScreenDoneButton: json.containsKey("introScreenDoneButton")
? json["introScreenDoneButton"] as String
: "Start Scanning",
introScreenText: json.containsKey("introScreenText")
? json["introScreenText"] as String
: "This scanner reads the MICR (Magnetic Ink Character Recognition) line – the numbers and characters printed at the bottom of your check.\n\nTo scan, place the check on a flat, well-lit surface and position your camera so the entire check is within the frame. The check data will be automatically extracted.\nTap 'Start Scanning' to begin.",
completionOverlaySuccessMessage:
json.containsKey("completionOverlaySuccessMessage")
? json["completionOverlaySuccessMessage"] as String
: "Scanned successfully",
accessibilityDescriptionOpenIntroScreenButton: json
.containsKey("accessibilityDescriptionOpenIntroScreenButton")
? json["accessibilityDescriptionOpenIntroScreenButton"] as String
: "Open Check Scanner introduction",
accessibilityDescriptionIntroScreenDoneButton: json
.containsKey("accessibilityDescriptionIntroScreenDoneButton")
? json["accessibilityDescriptionIntroScreenDoneButton"] as String
: "Start check scanning",
accessibilityDescriptionCancelButton:
json.containsKey("accessibilityDescriptionCancelButton")
? json["accessibilityDescriptionCancelButton"] as String
: "Cancel check scanning",
accessibilityDescriptionRetryButton:
json.containsKey("accessibilityDescriptionRetryButton")
? json["accessibilityDescriptionRetryButton"] as String
: "Retry check scanning",
accessibilityDescriptionCloseScannerButton:
json.containsKey("accessibilityDescriptionCloseScannerButton")
? json["accessibilityDescriptionCloseScannerButton"] as String
: "Close check scanner",
checkAlertRetryButton: json.containsKey("checkAlertRetryButton")
? json["checkAlertRetryButton"] as String
: "Retry",
checkAlertCloseScannerButton:
json.containsKey("checkAlertCloseScannerButton")
? json["checkAlertCloseScannerButton"] as String
: "Close Scanner",
checkNoCheckDetectedAlertTitle:
json.containsKey("checkNoCheckDetectedAlertTitle")
? json["checkNoCheckDetectedAlertTitle"] as String
: "No check detected",
checkNoCheckDetectedAlertSubtitle: json
.containsKey("checkNoCheckDetectedAlertSubtitle")
? json["checkNoCheckDetectedAlertSubtitle"] as String
: "The scanner couldn't detect the check. Please ensure the check is valid, well-lit, and fully visible, then try again.",
checkImageNotGoodAlertTitle:
json.containsKey("checkImageNotGoodAlertTitle")
? json["checkImageNotGoodAlertTitle"] as String
: "Check not recognized",
checkImageNotGoodAlertSubtitle: json
.containsKey("checkImageNotGoodAlertSubtitle")
? json["checkImageNotGoodAlertSubtitle"] as String
: "Make sure the check is valid, well-lit, and fully visible. Then try again.",
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",
checkUserGuidanceNoCheckFound:
json.containsKey("checkUserGuidanceNoCheckFound")
? json["checkUserGuidanceNoCheckFound"] as String
: "Looking for check...",
checkUserGuidanceScanningProgress:
json.containsKey("checkUserGuidanceScanningProgress")
? json["checkUserGuidanceScanningProgress"] as String
: "Scanning the check...",
checkUserGuidanceTooDark: json.containsKey("checkUserGuidanceTooDark")
? json["checkUserGuidanceTooDark"] as String
: "Too dark. Please turn on a light.",
checkUserGuidanceTooSmall: json.containsKey("checkUserGuidanceTooSmall")
? json["checkUserGuidanceTooSmall"] as String
: "Please move closer to the check.",
checkUserGuidanceBadPerspective:
json.containsKey("checkUserGuidanceBadPerspective")
? json["checkUserGuidanceBadPerspective"] as String
: "Please hold your device straight over the check.",
);