toJson method
Converts a NodeDaemonEndpoints instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempKubeletEndpoint = kubeletEndpoint;
if (tempKubeletEndpoint != null) {
jsonData['kubeletEndpoint'] = tempKubeletEndpoint.toJson();
}
return jsonData;
}