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.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.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.port != null) {
    json[r'port'] = this.port;
  } else {
    json[r'port'] = null;
  }
  if (this.project != null) {
    json[r'project'] = this.project;
  } else {
    json[r'project'] = 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.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.storageGb != null) {
    json[r'storageGb'] = this.storageGb;
  } else {
    json[r'storageGb'] = null;
  }
  return json;
}