toJson method
Converts a AttachedVolume instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempDevicePath = devicePath;
final tempName = name;
jsonData['devicePath'] = tempDevicePath;
jsonData['name'] = tempName;
return jsonData;
}