updateGlobalPreferences method
Update global preferences
preferences
is a map of preferences to update, key of the preference (in_app, sms, push, email, chat) and value of the preference
Implementation
Future<Dot.PreferencesResponse> updateGlobalPreferences(Map<String, bool> preferences) async {
var response = (await _client.patch<Map<String, dynamic>>(
'preferences',
data: preferences,
)).data!;
return Dot.PreferencesResponse.fromJson(response['data']);
}