# BarcodeTextLocalization.fromJson constructor

BarcodeTextLocalization.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory BarcodeTextLocalization.fromJson(Map<String, dynamic> json) =>
        BarcodeTextLocalization(
          topBarCancelButton: json.containsKey("topBarCancelButton")
              ? json["topBarCancelButton"] as String
              : "Cancel",
          topBarTitle: json.containsKey("topBarTitle")
              ? json["topBarTitle"] as String
              : "Scan Item",
          userGuidance: json.containsKey("userGuidance")
              ? json["userGuidance"] as String
              : "Move the finder over a barcode",
          barcodeInfoMappingLoadingMessage:
              json.containsKey("barcodeInfoMappingLoadingMessage")
                  ? json["barcodeInfoMappingLoadingMessage"] as String
                  : "Loading details...",
          barcodeInfoMappingErrorStateTitle:
              json.containsKey("barcodeInfoMappingErrorStateTitle")
                  ? json["barcodeInfoMappingErrorStateTitle"] as String
                  : "Connection Error!",
          barcodeInfoMappingErrorStateSubtitle: json
                  .containsKey("barcodeInfoMappingErrorStateSubtitle")
              ? json["barcodeInfoMappingErrorStateSubtitle"] as String
              : "There was an issue and the data requested was not fetched. You could try again or discard this result to start a new scan.",
          barcodeInfoMappingErrorStateRetryButton:
              json.containsKey("barcodeInfoMappingErrorStateRetryButton")
                  ? json["barcodeInfoMappingErrorStateRetryButton"] as String
                  : "Retry",
          barcodeInfoMappingErrorStateCancelButton:
              json.containsKey("barcodeInfoMappingErrorStateCancelButton")
                  ? json["barcodeInfoMappingErrorStateCancelButton"] as String
                  : "Cancel",
          manualCountEditDialogTitle:
              json.containsKey("manualCountEditDialogTitle")
                  ? json["manualCountEditDialogTitle"] as String
                  : "Update count",
          manualCountEditDialogInfo: json.containsKey("manualCountEditDialogInfo")
              ? json["manualCountEditDialogInfo"] as String
              : "Adjust the number of items you scanned.",
          manualCountEditDialogUpdateButton:
              json.containsKey("manualCountEditDialogUpdateButton")
                  ? json["manualCountEditDialogUpdateButton"] as String
                  : "Update",
          manualCountEditDialogCancelButton:
              json.containsKey("manualCountEditDialogCancelButton")
                  ? json["manualCountEditDialogCancelButton"] as String
                  : "Cancel",
          sheetResetButton: json.containsKey("sheetResetButton")
              ? json["sheetResetButton"] as String
              : "Reset",
          sheetClearAllButton: json.containsKey("sheetClearAllButton")
              ? json["sheetClearAllButton"] as String
              : "Clear all",
          sheetSubmitButton: json.containsKey("sheetSubmitButton")
              ? json["sheetSubmitButton"] as String
              : "Submit",
          sheetStartScanningButton: json.containsKey("sheetStartScanningButton")
              ? json["sheetStartScanningButton"] as String
              : "Start scanning",
          sheetPlaceholderTitle: json.containsKey("sheetPlaceholderTitle")
              ? json["sheetPlaceholderTitle"] as String
              : "No barcodes here!",
          sheetPlaceholderSubtitle: json.containsKey("sheetPlaceholderSubtitle")
              ? json["sheetPlaceholderSubtitle"] as String
              : "The barcode list is currently empty. Close this sheet and scan your items to add them.",
          singleModeConfirmationCancelButton:
              json.containsKey("singleModeConfirmationCancelButton")
                  ? json["singleModeConfirmationCancelButton"] as String
                  : "Close",
          multipleModeSheetTitle: json.containsKey("multipleModeSheetTitle")
              ? json["multipleModeSheetTitle"] as String
              : "%d items",
          findAndPickSheetTitle: json.containsKey("findAndPickSheetTitle")
              ? json["findAndPickSheetTitle"] as String
              : "%d/%d scanned",
          findAndPickSheetBarcodeItemSubtitle:
              json.containsKey("findAndPickSheetBarcodeItemSubtitle")
                  ? json["findAndPickSheetBarcodeItemSubtitle"] as String
                  : "%d/%d added",
          findAndPickPartialAlertTitle:
              json.containsKey("findAndPickPartialAlertTitle")
                  ? json["findAndPickPartialAlertTitle"] as String
                  : "Incomplete scan!",
          findAndPickPartialAlertSubtitle: json
                  .containsKey("findAndPickPartialAlertSubtitle")
              ? json["findAndPickPartialAlertSubtitle"] as String
              : "Some codes are yet to be scanned. Proceed with submission anyway?",
          findAndPickPartialAlertCancelButton:
              json.containsKey("findAndPickPartialAlertCancelButton")
                  ? json["findAndPickPartialAlertCancelButton"] as String
                  : "Cancel",
          findAndPickPartialAlertSubmitButton:
              json.containsKey("findAndPickPartialAlertSubmitButton")
                  ? json["findAndPickPartialAlertSubmitButton"] as String
                  : "Yes, Submit",
          findAndPickCompleteAlertTitle:
              json.containsKey("findAndPickCompleteAlertTitle")
                  ? json["findAndPickCompleteAlertTitle"] as String
                  : "All codes found!",
          findAndPickCompleteAlertSubtitle: json
                  .containsKey("findAndPickCompleteAlertSubtitle")
              ? json["findAndPickCompleteAlertSubtitle"] as String
              : "You have successfully scanned all codes. Proceed with submission?",
          findAndPickCompleteAlertCancelButton:
              json.containsKey("findAndPickCompleteAlertCancelButton")
                  ? json["findAndPickCompleteAlertCancelButton"] as String
                  : "Dismiss",
          findAndPickCompleteAlertSubmitButton:
              json.containsKey("findAndPickCompleteAlertSubmitButton")
                  ? json["findAndPickCompleteAlertSubmitButton"] as String
                  : "Submit",
          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",
        );