DynamicModel creates a new dynamic model with fields from the provided data shape.

Example:

const model = new DynamicModel({
name: ""
age: 0,
active: false,
roles: [],
meta: {}
})

Hierarchy

  • DynamicModel

Constructors

Constructors

Generated using TypeDoc