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