# 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["compression"] = compression.name;
      obj["jpegQuality"] = jpegQuality;
      obj["zipCompressionLevel"] = zipCompressionLevel;
      obj["dpi"] = dpi;
      obj["userFields"] =
          userFields.map((it) => it.toJson(config: config)).toList();
      obj["binarizationFilter"] = (binarizationFilter != null
          ? binarizationFilter!.toJson(config: config)
          : null);
      return obj;
    }