toJson method
Converts a VolumeAttachmentSpec instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempAttacher = attacher;
final tempNodeName = nodeName;
final tempSource = source;
jsonData['attacher'] = tempAttacher;
jsonData['nodeName'] = tempNodeName;
jsonData['source'] = tempSource.toJson();
return jsonData;
}