list method

Future<Response> list(
  1. {String search = '',
  2. int limit = 25,
  3. int offset = 0,
  4. OrderType orderType = OrderType.asc}
)

List Users

Get a list of all the project's users. You can use the query params to filter your results.

Implementation

Future<Response> list({String search = '', int limit = 25, int offset = 0, OrderType orderType = OrderType.asc}) {
   final String path = '/users';

   final Map<String, dynamic> params = {
       'search': search,
       'limit': limit,
       'offset': offset,
       'orderType': orderType.name(),
   };

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

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