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