# 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["roi"] = {
        "x": roi.left,
        "y": roi.top,
        "width": roi.width,
        "height": roi.height
      };
      obj["loadMode"] = loadMode.name;
      obj["encryptionMode"] = encryptionMode.name;
      return obj;
    }