Home Manual Reference Source Test
public class | source

Model

Direct Subclass:

JSONBlob

A base class for RxDB models that provides abstract support for JSON serialization and deserialization, and attribute-based matching.

Your RxDB data classes should extend Model and extend it's attributes:

  • {AttributeString} id: The resolved canonical ID of the model used in the database and generally throughout the app.

Static Method Summary

Static Public Methods
public static

Constructor Summary

Public Constructor
public

constructor(values: {})

Member Summary

Public Members
public

id: *

Method Summary

Public Methods
public

attributes(): *

public

clone(): *

public

fromJSON(json: *): *

public

matches(criteria: *): boolean

public

toJSON(options: {}): *

public

toString(): *

Static Public Methods

public static naturalSortOrder(): * source

Return:

*

Public Constructors

public constructor(values: {}) source

Params:

NameTypeAttributeDescription
values {}
  • optional
  • default: {}

Public Members

public id: * source

Public Methods

public attributes(): * source

Return:

*

public clone(): * source

Return:

*

public fromJSON(json: *): * source

Params:

NameTypeAttributeDescription
json *

Return:

*

public matches(criteria: *): boolean source

Params:

NameTypeAttributeDescription
criteria *

Return:

boolean

public toJSON(options: {}): * source

Params:

NameTypeAttributeDescription
options {}
  • optional
  • default: {}

Return:

*

public toString(): * source

Return:

*