updatePrefs method
Update User Preferences
Update the user preferences by its unique ID. You can pass only the specific settings you wish to update.
Implementation
Future<Response> updatePrefs({@required String userId, @required Map prefs}) {
final String path = '/users/{userId}/prefs'.replaceAll(RegExp('{userId}'), userId);
final Map<String, dynamic> params = {
'prefs': prefs,
};
final Map<String, String> headers = {
'content-type': 'application/json',
};
return client.call(HttpMethod.patch, path: path, params: params, headers: headers);
}