toJson method
Converts a AzureFileVolumeSource instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempReadOnly = readOnly;
final tempSecretName = secretName;
final tempShareName = shareName;
if (tempReadOnly != null) {
jsonData['readOnly'] = tempReadOnly;
}
jsonData['secretName'] = tempSecretName;
jsonData['shareName'] = tempShareName;
return jsonData;
}