StorageOSVolumeSource.fromJson constructor
Creates a StorageOSVolumeSource from JSON data.
Implementation
factory StorageOSVolumeSource.fromJson(Map<String, dynamic> json) {
final tempFsTypeJson = json['fsType'];
final tempReadOnlyJson = json['readOnly'];
final tempSecretRefJson = json['secretRef'];
final tempVolumeNameJson = json['volumeName'];
final tempVolumeNamespaceJson = json['volumeNamespace'];
final String? tempFsType = tempFsTypeJson;
final bool? tempReadOnly = tempReadOnlyJson;
final LocalObjectReference? tempSecretRef = tempSecretRefJson != null
? LocalObjectReference.fromJson(tempSecretRefJson)
: null;
final String? tempVolumeName = tempVolumeNameJson;
final String? tempVolumeNamespace = tempVolumeNamespaceJson;
return StorageOSVolumeSource(
fsType: tempFsType,
readOnly: tempReadOnly,
secretRef: tempSecretRef,
volumeName: tempVolumeName,
volumeNamespace: tempVolumeNamespace,
);
}