Page Contents

Home > @loopback/repository > Model

Model class

Base class for models

Signature:

export declare abstract class Model 

Constructors

Constructor Modifiers Description
(constructor)(data)   Constructs a new instance of the Model class

Properties

Property Modifiers Type Description
definition static ModelDefinition  
modelName static string  

Methods

Method Modifiers Description
toJSON()   Serialize into a plain JSON object
toObject(options)   Convert to a plain object as DTO