toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.buildType != null) {
    json[r'buildType'] = this.buildType;
  } else {
    json[r'buildType'] = null;
  }
  if (this.createdAt != null) {
    json[r'createdAt'] = this.createdAt;
  } else {
    json[r'createdAt'] = null;
  }
  if (this.currentDeploymentId != null) {
    json[r'currentDeploymentId'] = this.currentDeploymentId;
  } else {
    json[r'currentDeploymentId'] = null;
  }
  if (this.description != null) {
    json[r'description'] = this.description;
  } else {
    json[r'description'] = null;
  }
  if (this.dockerfile != null) {
    json[r'dockerfile'] = this.dockerfile;
  } else {
    json[r'dockerfile'] = null;
  }
    json[r'domains'] = this.domains;
    json[r'env'] = this.env;
  if (this.environment != null) {
    json[r'environment'] = this.environment;
  } else {
    json[r'environment'] = null;
  }
  if (this.health != null) {
    json[r'health'] = this.health;
  } else {
    json[r'health'] = null;
  }
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
  if (this.image != null) {
    json[r'image'] = this.image;
  } else {
    json[r'image'] = null;
  }
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.namespace != null) {
    json[r'namespace'] = this.namespace;
  } else {
    json[r'namespace'] = null;
  }
  if (this.org != null) {
    json[r'org'] = this.org;
  } else {
    json[r'org'] = null;
  }
  if (this.phase != null) {
    json[r'phase'] = this.phase;
  } else {
    json[r'phase'] = null;
  }
  if (this.port != null) {
    json[r'port'] = this.port;
  } else {
    json[r'port'] = null;
  }
  if (this.projectId != null) {
    json[r'projectId'] = this.projectId;
  } else {
    json[r'projectId'] = null;
  }
  if (this.replicas != null) {
    json[r'replicas'] = this.replicas;
  } else {
    json[r'replicas'] = null;
  }
  if (this.repo != null) {
    json[r'repo'] = this.repo;
  } else {
    json[r'repo'] = null;
  }
  if (this.secretSync != null) {
    json[r'secretSync'] = this.secretSync;
  } else {
    json[r'secretSync'] = null;
  }
  if (this.secretSyncDetail != null) {
    json[r'secretSyncDetail'] = this.secretSyncDetail;
  } else {
    json[r'secretSyncDetail'] = null;
  }
  if (this.slug != null) {
    json[r'slug'] = this.slug;
  } else {
    json[r'slug'] = null;
  }
  if (this.source_ != null) {
    json[r'source'] = this.source_;
  } else {
    json[r'source'] = null;
  }
  if (this.status != null) {
    json[r'status'] = this.status;
  } else {
    json[r'status'] = null;
  }
  if (this.storageGb != null) {
    json[r'storageGb'] = this.storageGb;
  } else {
    json[r'storageGb'] = null;
  }
  if (this.updatedAt != null) {
    json[r'updatedAt'] = this.updatedAt;
  } else {
    json[r'updatedAt'] = null;
  }
  return json;
}