Interface for converting a class to a plain object.

interface ToObject<T> {
    toObject(): T;
}

Type Parameters

  • T

Implemented by

Methods

Methods

  • Converts the class instance to a plain object.

    Returns T

    the plain object representation of the class.