src/Document/ResourceObject.php
public function withMeta($meta): self
    {
        $copy = clone $this;
        $copy->meta = collect($meta)->all();

        return $copy;
    }
public function withMeta($meta): self
    {
        $copy = clone $this;
        $copy->meta = collect($meta)->all();

        return $copy;
    }
Return a new instance with the provided meta.

@param array|Collection $meta
@return ResourceObject