removeFriend static method
Remove a friend relationship with the target user. The user must be on your friend list, though no error will occur if they are not.
Implementation
static Future<BooleanResponse> removeFriend (
HttpClient client,
String membershipId,
) async {
final Map<String, dynamic> params = Map<String, dynamic>();
final String _membershipId = '$membershipId';
final HttpClientConfig config = HttpClientConfig('POST', '/Social/Friends/Remove/$_membershipId/', params);
config.bodyContentType = null;
final HttpResponse response = await client.request(config);
if(response.statusCode == 200) {
return BooleanResponse.asyncFromJson(response.mappedBody);
}
throw Exception(response.mappedBody);
}