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