toJSON

open external fun toJSON(): VideoColorSpaceInit(source)

The toJSON() method of the VideoColorSpace interface returns a JSON-serializable plain object representing the VideoColorSpace object.

MDN Reference