Returns a copy of data with every mapped field turned into its enum instance. Missing paths
and nulls are left alone; unknown values become undefined, as with valueFor. Mapping data
that is already mapped is a no-op, so it is safe to run on every read.
shortcut: the result type is whatever the caller names (mapFields<Order>(...)), not derived
from the map; upgrade to a path-level mapped type if callers start getting it wrong.
Returns a copy of
datawith every mapped field turned into its enum instance. Missing paths and nulls are left alone; unknown values becomeundefined, as withvalueFor. Mapping data that is already mapped is a no-op, so it is safe to run on every read.shortcut: the result type is whatever the caller names (
mapFields<Order>(...)), not derived from the map; upgrade to a path-level mapped type if callers start getting it wrong.