SerializedPayloadDecoder
Read onlyYes
FinalYes
A payload that does not decode still has to produce the declared shape, so every branch that gives up answers with the declared columns as nulls - the rule from_json follows.
Methods
Methods
decode()
public
decode(Row $row) : array<string, mixed>
Parameters
- $row : Row
Return values
array<string, mixed>of()
public
static of(Reference $source, Serializer $serializer, array<string, string> $declared) : self
Parameters
- $source : Reference
- $serializer : Serializer
- $declared : array<string, string>
-
output column name => column name in the payload