Entity<T extends Object>.create constructor

const Entity<T extends Object>.create(
  1. T data,
  2. EntityValidator validator
)

Creates an entity with data validated by validator

Implementation

const factory Entity.create(T data, EntityValidator validator) = EntityImpl<T>;