Class: UserSpec
Represents a UserSpec.
Implements
Constructors
constructor
• new UserSpec(properties?
): UserSpec
Constructs a new UserSpec.
Parameters
Name | Type | Description |
---|---|---|
properties? | IUserSpec | Properties to set |
Returns
Properties
access
• Optional
access: null
| IAccess
The access to assigned to the user
Implementation of
email
• email: string
The email address associated to the user
Implementation of
Methods
toJSON
▸ toJSON(): Object
Converts this UserSpec to JSON.
Returns
Object
JSON object
create
▸ create(properties?
): UserSpec
Creates a new UserSpec instance using the specified properties.
Parameters
Name | Type | Description |
---|---|---|
properties? | IUserSpec | Properties to set |
Returns
UserSpec instance
decode
▸ decode(reader
, length?
): UserSpec
Decodes a UserSpec message from the specified reader or buffer.
Parameters
Name | Type | Description |
---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
length? | number | Message length if known beforehand |
Returns
UserSpec
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing