toJson method

Map<String, Object> toJson()

Converts a AzureFilePersistentVolumeSource instance to JSON data.

Implementation

Map<String, Object> toJson() {
  final jsonData = <String, Object>{};

  final tempReadOnly = readOnly;
  final tempSecretName = secretName;
  final tempSecretNamespace = secretNamespace;
  final tempShareName = shareName;

  if (tempReadOnly != null) {
    jsonData['readOnly'] = tempReadOnly;
  }

  jsonData['secretName'] = tempSecretName;

  if (tempSecretNamespace != null) {
    jsonData['secretNamespace'] = tempSecretNamespace;
  }

  jsonData['shareName'] = tempShareName;

  return jsonData;
}