getUuids function
Returns a List of player UUIDs by a List of player names.
Usernames are not case sensitive and ones which are invalid or not found are omitted. There's also an implicit limit of 10 usernames per lookup.
Implementation
Future<Map<String, String>> getUuids(List<String> usernames) async {
final response = await requestBody(
http.post, _minecraftServicesApi, 'minecraft/profile/lookup/bulk/byname', usernames,
headers: {'content-type': 'application/json'});
final list = parseResponseList(response);
return { for (var uuid in list) uuid['name']: uuid['id'] };
}