getUsers static method

Future<Map<String, User>> getUsers(
  1. UserIdList ids
)

Get multiple users by identifiers.

ids List of user identifiers.

Implementation

static Future<Map<String, User>> getUsers(UserIdList ids) {
  return NativeBridge.async(
          'Communities.getUsersByIds', jsonEncode(ids.toJSON()))
      .then((result) {
    Map<String, dynamic> jsonMap = jsonDecode(result);
    return jsonMap.map((key, value) => MapEntry(key, User.fromJSON(value)));
  });
}