removeMembers method

Future<RemoveMembersResponse> removeMembers (
  1. List<Member> members,
  2. Message message
)

Remove members from the channel

Implementation

Future<RemoveMembersResponse> removeMembers(
    List<Member> members, Message message) async {
  final res = await _client.post(_channelURL, data: {
    'remove_members': members.map((m) => m.toJson()),
    'message': message.toJson(),
  });
  return _client.decode(res.data, RemoveMembersResponse.fromJson);
}