private function formatTimestampFromApi(array $timestamp)
{
$formattedTime = (new DateTime())->setTimeZone(new DateTimeZone('UTC'))->setTimestamp($timestamp['seconds'])->format('Y-m-d\\TH:i:s');
return $formattedTime .= sprintf('.%sZ', rtrim($timestamp['nanos'], '0'));
}