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