areGroupMembers static method
Implementation
static Future<Map<String, Membership>> areGroupMembers(
String groupId, UserIdList userIdList) {
Map<String, dynamic> areGroupMembersBody = {
'userIdList': userIdList.toJSON(),
'groupId': groupId,
};
return NativeBridge.async(
'Communities.areGroupMembers', jsonEncode(areGroupMembersBody))
.then((result) {
Map<String, dynamic> jsonMap = jsonDecode(result);
return jsonMap
.map((key, value) => MapEntry(key, Membership.fromJSON(value)));
});
}