toJson method

Map toJson()

Implementation

Map toJson() {
  Map _result = {};

  _result.addAll({"attributes": attributes});
  if (!customQuality.isEmpty) {
    var list = [];
    for (var item in customQuality) list.add(item!.toJson());
    _result.addAll({"customQuality": list});
  }
  if (outputImageParams != null)
    _result.addAll({"outputImageParams": outputImageParams!.toJson()});
  if (onlyCentralFace != null)
    _result.addAll({"onlyCentralFace": onlyCentralFace});

  return _result;
}