Undefined index: bathroomId (View: firebase
do {
$response = $this->client->downloadAccount($batchSize, $pageToken);
$result = JSON::decode((string)$response->getBody(), true);
foreach ((array)$result['users'] as $userData) {
yield UserRecord::fromResponseData($userData);
if (++$count === $maxResults) {
return;
}
}
$pageToken = $result['nextPageToken'] ?? null;
} while ($pageToken);