AzureFileVolumeSource.fromJson constructor

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

Creates a AzureFileVolumeSource from JSON data.

Implementation

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

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

  return AzureFileVolumeSource(
    readOnly: tempReadOnly,
    secretName: tempSecretName,
    shareName: tempShareName,
  );
}