me method
Fetches current user's information.
Implementation
Future<User> me() async {
return ApiFactory.handleApiError(() async {
Response response = await _dio.get("/v2/user/me");
return User.fromJson(response.data);
});
}
Fetches current user's information.
Future<User> me() async {
return ApiFactory.handleApiError(() async {
Response response = await _dio.get("/v2/user/me");
return User.fromJson(response.data);
});
}