addMembers method

Future<AddMembersResponse> addMembers (
  1. List<Member> members,
  2. Message message
)

Add members to the channel

Implementation

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