# 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["statusBarMode"] = statusBarMode.name;
      obj["background"] = background.toString();
      obj["iconBackground"] = iconBackground.toString();
      obj["icon"] = icon.toJson(config: config);
      obj["enableCameraButton"] = enableCameraButton.toJson(config: config);
      obj["closeButton"] = closeButton.toJson(config: config);
      obj["enableCameraTitle"] = enableCameraTitle.toJson(config: config);
      obj["enableCameraExplanation"] =
          enableCameraExplanation.toJson(config: config);
      return obj;
    }