toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.createdTime != null) {
json[r'createdTime'] = this.createdTime;
} else {
json[r'createdTime'] = null;
}
if (this.gpu != null) {
json[r'gpu'] = this.gpu;
} else {
json[r'gpu'] = null;
}
if (this.id != null) {
json[r'id'] = this.id;
} else {
json[r'id'] = null;
}
if (this.image != null) {
json[r'image'] = this.image;
} else {
json[r'image'] = null;
}
if (this.mem != null) {
json[r'mem'] = this.mem;
} else {
json[r'mem'] = null;
}
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
if (this.os != null) {
json[r'os'] = this.os;
} else {
json[r'os'] = null;
}
if (this.privateIp != null) {
json[r'privateIp'] = this.privateIp;
} else {
json[r'privateIp'] = null;
}
if (this.provider != null) {
json[r'provider'] = this.provider;
} else {
json[r'provider'] = null;
}
if (this.publicIp != null) {
json[r'publicIp'] = this.publicIp;
} else {
json[r'publicIp'] = 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;
}
if (this.type != null) {
json[r'type'] = this.type;
} else {
json[r'type'] = null;
}
if (this.vcpu != null) {
json[r'vcpu'] = this.vcpu;
} else {
json[r'vcpu'] = null;
}
return json;
}