toJson method
Converts a EphemeralVolumeSource instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempVolumeClaimTemplate = volumeClaimTemplate;
if (tempVolumeClaimTemplate != null) {
jsonData['volumeClaimTemplate'] = tempVolumeClaimTemplate.toJson();
}
return jsonData;
}