toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.capacity != null) {
json[r'capacity'] = this.capacity;
} else {
json[r'capacity'] = 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.label != null) {
json[r'label'] = this.label;
} else {
json[r'label'] = null;
}
if (this.metrics != null) {
json[r'metrics'] = this.metrics;
} else {
json[r'metrics'] = null;
}
if (this.spec != null) {
json[r'spec'] = this.spec;
} else {
json[r'spec'] = null;
}
if (this.status != null) {
json[r'status'] = this.status;
} else {
json[r'status'] = null;
}
return json;
}