AzureFilePersistentVolumeSource.fromJson constructor

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

Creates a AzureFilePersistentVolumeSource from JSON data.

Implementation

factory AzureFilePersistentVolumeSource.fromJson(Map<String, dynamic> json) {
  final tempReadOnlyJson = json['readOnly'];
  final tempSecretNameJson = json['secretName'];
  final tempSecretNamespaceJson = json['secretNamespace'];
  final tempShareNameJson = json['shareName'];

  final bool? tempReadOnly = tempReadOnlyJson;
  final String tempSecretName = tempSecretNameJson;
  final String? tempSecretNamespace = tempSecretNamespaceJson;
  final String tempShareName = tempShareNameJson;

  return AzureFilePersistentVolumeSource(
    readOnly: tempReadOnly,
    secretName: tempSecretName,
    secretNamespace: tempSecretNamespace,
    shareName: tempShareName,
  );
}