mapObjectToModel

Function

Generic function to apply properties from an Object (i.e. IHubProject) onto a Model that can be persisted to an Item

Parameters

Parameter Type Default Notes
object Required
model Required IModel
mappings Required IPropertyMap[]

Returns

Property Type Notes
item IItem
data Optional [key: string]: any
resources Optional [key: string]: any

Function defined in common/src/core/_internal/PropertyMapper.ts:86