Utility function that can be used to map an arbitrary data object to a model.
the input data for the mapping function
the target model to map the data to
a mapping function that takes the input data and the target model and returns a partial of the target model. The results will be applied to the model.
Utility function that can be used to map an arbitrary data object to a model.