public function jsonSerialize(): array
{ $jsonArray = parent::
jsonSerialize();
// The key-values pairs from the property $data are now serialized in the JSON property "data". But the
// key-value pairs from data should appear in the serialization as they were properties of the ArrayStruct
// itself. Therefore the key-values moved one level up.
unset($jsonArray['data'
]);
$data =
$this->data;
$this->
convertDateTimePropertiesToJsonStringRepresentation($data);
return array_merge($jsonArray,
$data);
} public function getApiAlias(): string
{ return $this->apiAlias ?? 'array_struct';
} /**
* @return array<string|int, mixed>
*/