Skip to content

Serializable

Christian Prinz edited this page Oct 17, 2022 · 1 revision

Class: Serializable

Hierarchy

Table of contents

Constructors

Methods

Constructors

constructor

new Serializable()

Methods

toJSON

toJSON(): Record<any, any>

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()

Returns

Record<any, any>

an object containing all private attributes

Defined in

Serializable.ts:10

DDD basics - v0.0.1

Clone this wiki locally