toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (name != null) {
    _json[r'name'] = name;
  }
  if (appId != null) {
    _json[r'appId'] = appId;
  }
  if (serviceName != null) {
    _json[r'serviceName'] = serviceName;
  }
  if (imageId != null) {
    _json[r'imageId'] = imageId;
  }
  if (dockerImageId != null) {
    _json[r'dockerImageId'] = dockerImageId;
  }
  if (status != null) {
    _json[r'status'] = status;
  }
  if (downloadProgress != null) {
    _json[r'downloadProgress'] = downloadProgress;
  }
  return _json;
}