Interface for converting class to JSON string.

interface ToJSON {
    toJSON(): string;
}

Implemented by

Methods

Methods

  • Converts the class instance to a plain JSON string.

    Returns string

    the plain JSON string of the class.