import BackboneParseObject from 'backbone-parse-es6/src/BackboneParseObject.js'
BackboneParseObject
Extends:
parse~Parse.Object → BackboneParseObject
Provides overrides necessary to integrate Parse serialization / deserialization with Backbone.
Constructor Summary
Public Constructor | ||
public |
constructor(className: string | object, attributes: object, options: object) Provides a constructor for clone. |
Method Summary
Public Methods | ||
public |
Creates a new BackboneParseObject with identical attributes to this one. |
|
public |
Returns a JSON version of the object suitable for saving to Parse. |
Public Constructors
Public Methods
public clone(): BackboneParseObject source
Creates a new BackboneParseObject with identical attributes to this one.
public toJSON(seen: *): Object source
Returns a JSON version of the object suitable for saving to Parse.
There is a subtle difference in this version which is if attrs[attr].parseObject === 'object'
then the
associated parseObject
is encoded directly.
Params:
Name | Type | Attribute | Description |
seen | * | Provides an array of previously seen entries. |