Carbon object could be transformed to 16-05-1994T00:00:00+00.
Transformer Interface
Implement theTransformer interface:
Parameters
- property -
DataPropertyobject representing the property being transformed (read more) - value - The value to transform (never
null) - context -
TransformationContextcontaining:transformValues- Whether values should be transformedmapPropertyNames- Whether property names should be mappedwrapExecutionType- The execution type for wrapping valuestransformers- Collection of available transformers
Return Value
Return the transformed value.Example Transformer
Combining Transformers and Casts
Create a class that both transforms and casts:WithCastAndTransformer attribute: