toJson

fun toJson(imageSerializationMode: ImageSerializationMode): JSONObject

Converts the Image Ref to Json representation If serialization mode is REFERENCE effectively calls serialize If serialization mode is BUFFER stores the image inplace in base64 format