Skip to Content

AccountState

class

AccountState

Constructor

constructor
AccountState(props: Props): AccountState

Parameters:

props: Props

Returns:

AccountState

Properties

_version?
number
_allFieldNames
null | string[]
_dateKeys
string[]
_fieldNames
null | string[]
_isInstance
any
_tokens
any[]
_version
number
defaults
any
isInstance
any

Methods

contains
contains(data: Props): boolean

Parameters:

data: Props

Returns:

boolean
equals
equals(other: AccountState, opts: any): boolean

Parameters:

opts: any

Returns:

boolean
merge
merge(data: Props): any

Parameters:

data: Props

Returns:

any
toJSON
toJSON(opts?: any): any

Parameters:

opts (optional): any

Returns:

any
toRedactedJSON
toRedactedJSON(): PickNonNullable
_getAllFieldNames
_getAllFieldNames(): string[]

Returns:

string[]
_getFieldNames
_getFieldNames(): string[]

Returns:

string[]
_legacyParse
_legacyParse(rawData: Record): Record

Parameters:

rawData: Record

Returns:

Record
_postParse
_postParse(data: Record): Record

Parameters:

data: Record

Returns:

Record
[hasInstance]
[hasInstance](x: any): any

Parameters:

x: any

Returns:

any
create
create(props?: Props): AccountState

Parameters:

props (optional): Props

Returns:

AccountState
deserialize
deserialize(serialized: AccountStateJson | any): AccountState

Parameters:

serialized: AccountStateJson | any

Returns:

AccountState
fromJSON
fromJSON(serialized: AccountStateJson | any): AccountState

Parameters:

serialized: AccountStateJson | any

Returns:

AccountState
serialize
serialize(json: AccountStateJson, __namedParameters: any): any

Parameters:

__namedParameters: any

Returns:

any

Accessors

[ModelIdSymbol]

Start building

XO

Request Demo

Schedule a call with our team

Select a product
Arrow right

Start building
Grateful

Contact Us

We're here to help