toJSON

external fun toJSON(): JsAny(source)

Returns a JSON-serializable object representing the material. This encoding is not memory-efficient, and should generally be used for debugging and testing.

Return

JSON-serializable object.

See also