getProfile method
Implementation
@override
Future<Either<Failure, Profile>> getProfile() async {
try {
final result = await httpHandler.get(
url: Api.profile.getProfile,
// queryParameters: param,
withAccessToken: true);
return Right(ProfileDto.fromJson(result).jsonResult);
} on Exception catch (error) {
return Left(FailureResponse.mapExceptionToFailure(error));
}
}