Method
encode(to:)
Encodes this object to JSON.
func encode(to encoder: Encoder) throws
Parameters
encoder-
The encoder to write data to.
Discussion
Produces JSON in EMF-compliant format with the eClass URI and feature values. Uses EMF URI format when package context is available, otherwise falls back to simple name.