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

Note that in order to use 0 as double/float initialization number you have to use negative zero (-0).

Example:

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

Hierarchy

  • DynamicModel

Constructors

Constructors

Generated using TypeDoc