}> */ #[ORM\Column(type: Types::JSON, name: "embedding", nullable: true)] public readonly ?array $value; public function __construct(EmbeddingMap ...$maps) { $value = []; foreach ($maps as $map) { $value[] = [ 'content' => $map->content, 'embedding' => $map->embedding, ]; } $this->value = $value; } #[Override] public function jsonSerialize(): ?array { return $this->value; } }