toJson method

Map toJson()

Implementation

Map toJson() {
  Map _result = {};

  if (outputImageParams != null)
    _result.addAll({"outputImageParams": outputImageParams!.toJson()});
  _result.addAll({"groupIdsForSearch": groupIdsForSearch});
  if (threshold != null) _result.addAll({"threshold": threshold});
  if (limit != null) _result.addAll({"limit": limit});
  if (imageUpload != null)
    _result.addAll({"imageUpload": imageUpload!.toJson()});
  if (detectAll != null) _result.addAll({"detectAll": detectAll});

  return _result;
}