getPrefs method

Future<Response> getPrefs(
  1. {@required String userId}
)

Get User Preferences

Get the user preferences by its unique ID.

Implementation

Future<Response> getPrefs({@required String userId}) {
   final String path = '/users/{userId}/prefs'.replaceAll(RegExp('{userId}'), userId);

   final Map<String, dynamic> params = {
   };

   final Map<String, String> headers = {
       'content-type': 'application/json',
   };

   return client.call(HttpMethod.get, path: path, params: params, headers: headers);
    }