get method

Future<User> get()

Get account

Get the currently logged in user.

Implementation

Future<models.User> get() async {
  const String apiPath = '/account';

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

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

  final res = await client.call(HttpMethod.get,
      path: apiPath, params: apiParams, headers: apiHeaders);

  return models.User.fromMap(res.data);
}