toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.amdGpu != null) {
    json[r'amdGpu'] = this.amdGpu;
  } else {
    json[r'amdGpu'] = null;
  }
  if (this.createdAt != null) {
    json[r'createdAt'] = this.createdAt;
  } else {
    json[r'createdAt'] = null;
  }
  if (this.doClusterId != null) {
    json[r'doClusterId'] = this.doClusterId;
  } else {
    json[r'doClusterId'] = null;
  }
  if (this.doksClusterId != null) {
    json[r'doksClusterId'] = this.doksClusterId;
  } else {
    json[r'doksClusterId'] = null;
  }
  if (this.kind != null) {
    json[r'kind'] = this.kind;
  } else {
    json[r'kind'] = null;
  }
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.nodeCount != null) {
    json[r'nodeCount'] = this.nodeCount;
  } else {
    json[r'nodeCount'] = null;
  }
    json[r'nodePools'] = this.nodePools;
  if (this.nodeSize != null) {
    json[r'nodeSize'] = this.nodeSize;
  } else {
    json[r'nodeSize'] = null;
  }
  if (this.nvidiaGpu != null) {
    json[r'nvidiaGpu'] = this.nvidiaGpu;
  } else {
    json[r'nvidiaGpu'] = null;
  }
  if (this.region != null) {
    json[r'region'] = this.region;
  } else {
    json[r'region'] = null;
  }
  if (this.status != null) {
    json[r'status'] = this.status;
  } else {
    json[r'status'] = null;
  }
  return json;
}