toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.at != null) {
    json[r'at'] = this.at;
  } else {
    json[r'at'] = null;
  }
  if (this.costCents != null) {
    json[r'costCents'] = this.costCents;
  } else {
    json[r'costCents'] = null;
  }
  if (this.cpus != null) {
    json[r'cpus'] = this.cpus;
  } else {
    json[r'cpus'] = null;
  }
  if (this.gpuModel != null) {
    json[r'gpuModel'] = this.gpuModel;
  } else {
    json[r'gpuModel'] = null;
  }
  if (this.gpuUtil != null) {
    json[r'gpuUtil'] = this.gpuUtil;
  } else {
    json[r'gpuUtil'] = null;
  }
  if (this.gpus != null) {
    json[r'gpus'] = this.gpus;
  } else {
    json[r'gpus'] = null;
  }
  if (this.host != null) {
    json[r'host'] = this.host;
  } else {
    json[r'host'] = null;
  }
  if (this.kind != null) {
    json[r'kind'] = this.kind;
  } else {
    json[r'kind'] = null;
  }
  if (this.load1 != null) {
    json[r'load1'] = this.load1;
  } else {
    json[r'load1'] = null;
  }
  if (this.load5 != null) {
    json[r'load5'] = this.load5;
  } else {
    json[r'load5'] = null;
  }
  if (this.load15 != null) {
    json[r'load15'] = this.load15;
  } else {
    json[r'load15'] = null;
  }
  if (this.memFree != null) {
    json[r'memFree'] = this.memFree;
  } else {
    json[r'memFree'] = null;
  }
  if (this.memUsed != null) {
    json[r'memUsed'] = this.memUsed;
  } else {
    json[r'memUsed'] = null;
  }
  if (this.memory != null) {
    json[r'memory'] = this.memory;
  } else {
    json[r'memory'] = null;
  }
  if (this.source_ != null) {
    json[r'source'] = this.source_;
  } else {
    json[r'source'] = null;
  }
  if (this.unit != null) {
    json[r'unit'] = this.unit;
  } else {
    json[r'unit'] = null;
  }
  return json;
}