serviceTerms method

Future<ServiceTerms> serviceTerms ()

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

Implementation

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