Class: Model

Picasso. Model

new Model()

The picasso Model entity
Source:

Extends

  • Picasso.core,Subject

Methods

<static> extend(Constructor) → {function}

Extends from a Model
Parameters:
Name Type Description
Constructor function The constructor to extend
Source:
Returns:
The updated constructor
Type
function

get(property) → {*}

Gets a model property value
Parameters:
Name Type Description
property string
Source:
Returns:
Type
*

set(property, value)

Sets a property of the model
Parameters:
Name Type Description
property string
value *
Source:

toPlainObject() → {Object}

Returns the plain object of this model with all the values
Source:
Returns:
Type
Object

update(plainModel)

Updates the properties of the model
Parameters:
Name Type Description
plainModel Object
Source: