toJson method
Implementation
Map toJson(){
Map result = {};
if (imageType != null) result.addAll({"imageType": imageType});
if (detectAll != null) result.addAll({"detectAll": detectAll});
if (bitmap != null) result.addAll({"bitmap": bitmap});
if (identifier != null) result.addAll({"identifier": identifier});
return result;
}