MapSpec
Union
MapSpec
type
Defines a mapping specification object that maps target object properties to source extraction rules.
Each property in the target type can be mapped using either a property path string or a function that extracts the value from the source object. This allows flexible transformation of data from one structure to another.