toJson method
Converts a EmptyDirVolumeSource instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempMedium = medium;
final tempSizeLimit = sizeLimit;
if (tempMedium != null) {
jsonData['medium'] = tempMedium;
}
if (tempSizeLimit != null) {
jsonData['sizeLimit'] = tempSizeLimit;
}
return jsonData;
}