# 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["attributes"] = attributes.toJson(config: config);
      obj["pageSize"] = pageSize.name;
      obj["pageDirection"] = pageDirection.name;
      obj["pageFit"] = pageFit.name;
      obj["dpi"] = dpi;
      obj["jpegQuality"] = jpegQuality;
      obj["resamplingMethod"] = resamplingMethod.name;
      return obj;
    }