protected function mapUserToObject(array $user)
{
return new User(['id' => $this->arrayItem($user, 'id'), 'nickname' => $this->arrayItem($user, 'formattedName'), 'name' => $this->arrayItem($user, 'formattedName'), 'email' => $this->arrayItem($user, 'emailAddress'), 'avatar' => $this->arrayItem($user, 'pictureUrl'), 'avatar_original' => $this->arrayItem($user, 'pictureUrls.values.0')]);
}