💬 reduces the Serializable to its private ("underscored") attributes.
All non-underscored attributes and methods will be omitted.
This method overrides the built-in toJSON()
which is primarily used in JSON.stringify()
an object containing all private attributes
Generated using TypeDoc
An abstract class that overrides the
toJSON()
method to serialize private attributesOnly underscored values are serialized!
Example