new DataEntityType(entityData?: any, rawData?: TRawData): TEntity
Parameters
Optional entityData: any
an object containing the same properties as TEntity.
TODO: make entityData something like Partial. This is a problem at the moment, since it doesn't work well with ModelBase.
This is the interface for the constructor of any models - Entity or ValueObject.