null]; } if ($value instanceof UuidInterface) { return [$key => $value->toString()]; } return [$key => Uuid::fromString((string) $value)->toString()]; } public function cast(DataProperty $property, mixed $value, array $properties, CreationContext $context): mixed { return Uuid::fromString((string) $value); } }