toJson method
Converts a NodeSystemInfo instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempArchitecture = architecture;
final tempBootID = bootID;
final tempContainerRuntimeVersion = containerRuntimeVersion;
final tempKernelVersion = kernelVersion;
final tempKubeProxyVersion = kubeProxyVersion;
final tempKubeletVersion = kubeletVersion;
final tempMachineID = machineID;
final tempOperatingSystem = operatingSystem;
final tempOsImage = osImage;
final tempSystemUUID = systemUUID;
jsonData['architecture'] = tempArchitecture;
jsonData['bootID'] = tempBootID;
jsonData['containerRuntimeVersion'] = tempContainerRuntimeVersion;
jsonData['kernelVersion'] = tempKernelVersion;
jsonData['kubeProxyVersion'] = tempKubeProxyVersion;
jsonData['kubeletVersion'] = tempKubeletVersion;
jsonData['machineID'] = tempMachineID;
jsonData['operatingSystem'] = tempOperatingSystem;
jsonData['osImage'] = tempOsImage;
jsonData['systemUUID'] = tempSystemUUID;
return jsonData;
}