toJson method

Map toJson()

Implementation

Map toJson() {
  Map _result = {};

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

  return _result;
}