areGroupMembers static method

Future<Map<String, Membership>> areGroupMembers(
  1. String groupId,
  2. UserIdList userIdList
)

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)));
  });
}