getAccountByPuuid static method
Future<AccountDTO>
getAccountByPuuid(
- PlatformValues platform,
- String puuid, {
- Map<
String, String> ? headers,
Get account by puuid
Implementation
static Future<AccountDTO> getAccountByPuuid(
PlatformValues platform, String puuid,
{Map<String, String>? headers}) async {
final url =
'${platform.platformToUrl}/${Qtype.riot.name}/account/v1/accounts/by-puuid/$puuid';
AccountDTO user =
await ApiUtil.requestApi(url, AccountDTO.fromJson, headers);
return user;
}