toJson method
Implementation
Map<String, dynamic> toJson() {
final _json = <String, dynamic>{};
if (apiPort != null) {
_json[r'api_port'] = apiPort;
}
if (ipAddress != null) {
_json[r'ip_address'] = ipAddress;
}
if (commit != null) {
_json[r'commit'] = commit;
}
if (status != null) {
_json[r'status'] = status;
}
if (downloadProgress != null) {
_json[r'download_progress'] = downloadProgress;
}
if (osVersion != null) {
_json[r'os_version'] = osVersion;
}
if (supervisorVersion != null) {
_json[r'supervisor_version'] = supervisorVersion;
}
if (updatePending != null) {
_json[r'update_pending'] = updatePending;
}
if (updateDownloaded != null) {
_json[r'update_downloaded'] = updateDownloaded;
}
if (updateFailed != null) {
_json[r'update_failed'] = updateFailed;
}
return _json;
}