toJson method
Converts a StatefulSetPersistentVolumeClaimRetentionPolicy instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempWhenDeleted = whenDeleted;
final tempWhenScaled = whenScaled;
if (tempWhenDeleted != null) {
jsonData['whenDeleted'] = tempWhenDeleted;
}
if (tempWhenScaled != null) {
jsonData['whenScaled'] = tempWhenScaled;
}
return jsonData;
}