toJson method
Implementation
Map toJson(){
Map _result = {};
if (pageIndex != null) _result.addAll({"pageIndex": pageIndex});
if (light != null) _result.addAll({"light": light});
if (type != null) _result.addAll({"type": type});
if (width != null) _result.addAll({"width": width});
if (height != null) _result.addAll({"height": height});
if (bitmap != null) _result.addAll({"bitmap": bitmap});
if (imgBytes != null) _result.addAll({"imgBytes": imgBytes});
return _result;
}