revokeServiceTerms method

Future<UserRevokedServiceTerms> revokeServiceTerms({
  1. required List<String> tags,
})

KO: 서비스 약관 동의 철회하기
서비스 약관 태그 목록은 tags에 전달

EN: Revoke consent for service terms
Pass the tags of service terms to tags

Implementation

Future<UserRevokedServiceTerms> revokeServiceTerms(
    {required List<String> tags}) async {
  Map<String, dynamic> param = {Constants.tags: tags.join(',')};
  return ApiFactory.handleApiError(() async {
    Response response = await _dio.post(Constants.v2RevokeServiceTermsPath,
        queryParameters: param);
    return UserRevokedServiceTerms.fromJson(response.data);
  });
}