serviceTerms method

Future<UserServiceTerms> serviceTerms()

Fetches a list of custom service terms that current user has agreed to.

Implementation

Future<UserServiceTerms> serviceTerms() async {
  return ApiFactory.handleApiError(() async {
    Response response = await _dio.get("/v1/user/service/terms");
    return UserServiceTerms.fromJson(response.data);
  });
}