toJson method
Converts a HostPathVolumeSource instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempPath = path;
final tempType = type;
jsonData['path'] = tempPath;
if (tempType != null) {
jsonData['type'] = tempType;
}
return jsonData;
}