getAccountByPuuid method

Future<AccountDto> getAccountByPuuid(
  1. RegionRoutingValue region,
  2. String puuid
)

Implementation

Future<AccountDto> getAccountByPuuid(
  RegionRoutingValue region,
  String puuid,
) async {
  final url =
      'https://${REGION_ROUTING_VALUES[region]}/riot/account/v1/accounts/by-puuid/$puuid';
  final response = await get(url);

  return AccountDto.fromJson(response!.data);
}