Class: SearchAttributePayloadConverter
common.SearchAttributePayloadConverter
Converts Search Attribute values using JsonPayloadConverter
Implements
Constructors
constructor
• new SearchAttributePayloadConverter(): SearchAttributePayloadConverter
Returns
SearchAttributePayloadConverter
Properties
jsonConverter
• jsonConverter: JsonPayloadConverter
validNonDateTypes
• validNonDateTypes: string
[]
Methods
fromPayload
▸ fromPayload<T
>(payload
): T
Datetime Search Attribute values are converted to Date
s
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
payload | IPayload |
Returns
T
Implementation of
toPayload
▸ toPayload(values
): IPayload
Converts a value to a Payload.
Parameters
Name | Type | Description |
---|---|---|
values | unknown | The value to convert. Example values include the Workflow args sent from the Client and the values returned by a Workflow or Activity. |
Returns
The Payload.
Should throw ValueError if unable to convert.