getUsers static method
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)));
});
}