StatefulSetPersistentVolumeClaimRetentionPolicy.fromJson constructor

StatefulSetPersistentVolumeClaimRetentionPolicy.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory StatefulSetPersistentVolumeClaimRetentionPolicy.fromJson(
    Map<String, dynamic> json) {
  final tempWhenDeletedJson = json['whenDeleted'];
  final tempWhenScaledJson = json['whenScaled'];

  final String? tempWhenDeleted = tempWhenDeletedJson;
  final String? tempWhenScaled = tempWhenScaledJson;

  return StatefulSetPersistentVolumeClaimRetentionPolicy(
    whenDeleted: tempWhenDeleted,
    whenScaled: tempWhenScaled,
  );
}