Home Identifier Source Repository
import ActionField from 'super-siren/lib/ActionField.js'
public class | source

ActionField

You can directly use instance of this class. actionField

Describes a field on an Action and how this field should be sent to Siren API as part of that Action.

Static Member Summary

Static Public Members
public static get

Default empty state for a field.

Static Method Summary

Static Public Methods
public static

Parses a JSON representation of a field.

Static Public Members

public static get empty: ActionField: * source

Default empty state for a field.

Return:

ActionField

Default state

Static Public Methods

public static fromJson(json: Object): ActionField source

Parses a JSON representation of a field.

Params:

NameTypeAttributeDescription
json Object

The Object representation of the ActionField.

Return:

ActionField

parsed structure which represents a field on an action.