Object mapping converts fields from a stored record into properties of an application object. A mapping can convert a stored date into the application’s date type and specify how to handle missing values. Applications commonly use mapping when reading records from a database.
When mapping data from an untrusted source, define the expected fields and restrict which object types the mapper can create. Test how the mapper handles unexpected fields, invalid values, and missing required data.


