me method
Implementation
Future<User> me(Authentication authentication) async {
http.Response response = await _httpService.get(
'/api/v1/me',
authentication,
);
if (response.statusCode == 200) {
if (response.body.isNotEmpty == true) {
return User.fromMap(jsonDecode(response.body));
} else {
return User();
}
}
throw RocketChatException(response.body);
}