toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.costCents != null) {
    json[r'costCents'] = this.costCents;
  } else {
    json[r'costCents'] = null;
  }
  if (this.cpuVcpuHours != null) {
    json[r'cpuVcpuHours'] = this.cpuVcpuHours;
  } else {
    json[r'cpuVcpuHours'] = null;
  }
  if (this.memGbHours != null) {
    json[r'memGbHours'] = this.memGbHours;
  } else {
    json[r'memGbHours'] = null;
  }
  if (this.storageIoBytes != null) {
    json[r'storageIoBytes'] = this.storageIoBytes;
  } else {
    json[r'storageIoBytes'] = null;
  }
  return json;
}