# toJson method

Map<String, dynamic> toJson({

1. ToJsonConfiguration? config,

})

## Implementation

    Map<String, dynamic> toJson({ToJsonConfiguration? config}) {
      config = config ?? ToJsonConfiguration();
      Map<String, dynamic> obj = <String, dynamic>{};
      obj["version"] = version;
      obj["screen"] = screen;
      obj["localization"] = localization.toJson(config: config);
      obj["palette"] = palette.toJson(config: config);
      obj["backgroundColor"] = backgroundColor.toString();
      obj["cameraConfiguration"] = cameraConfiguration.toJson(config: config);
      obj["cameraPermission"] = cameraPermission.toJson(config: config);
      obj["topUserGuidance"] = topUserGuidance.toJson(config: config);
      obj["scanStatusUserGuidance"] =
          scanStatusUserGuidance.toJson(config: config);
      obj["topBar"] = topBar.toJson(config: config);
      obj["topBarOpenIntroScreenButton"] =
          topBarOpenIntroScreenButton.toJson(config: config);
      obj["introScreen"] = introScreen.toJson(config: config);
      obj["actionBar"] = actionBar.toJson(config: config);
      obj["viewFinder"] = viewFinder.toJson(config: config);
      obj["scannerConfiguration"] = scannerConfiguration.toJson(config: config);
      obj["exampleOverlayVisible"] = exampleOverlayVisible;
      obj["scanningProgress"] = scanningProgress.toJson(config: config);
      obj["scanIncompleteDataTimeout"] = scanIncompleteDataTimeout;
      obj["successOverlay"] = successOverlay.toJson(config: config);
      obj["incompleteDataOverlay"] = incompleteDataOverlay.toJson(config: config);
      obj["sound"] = sound.toJson(config: config);
      obj["vibration"] = vibration.toJson(config: config);
      obj["keepScreenOn"] = keepScreenOn;
      return obj;
    }