CinderPersistentVolumeSource.fromJson constructor
Creates a CinderPersistentVolumeSource from JSON data.
Implementation
factory CinderPersistentVolumeSource.fromJson(Map<String, dynamic> json) {
final tempFsTypeJson = json['fsType'];
final tempReadOnlyJson = json['readOnly'];
final tempSecretRefJson = json['secretRef'];
final tempVolumeIDJson = json['volumeID'];
final String? tempFsType = tempFsTypeJson;
final bool? tempReadOnly = tempReadOnlyJson;
final SecretReference? tempSecretRef = tempSecretRefJson != null
? SecretReference.fromJson(tempSecretRefJson)
: null;
final String tempVolumeID = tempVolumeIDJson;
return CinderPersistentVolumeSource(
fsType: tempFsType,
readOnly: tempReadOnly,
secretRef: tempSecretRef,
volumeID: tempVolumeID,
);
}