models

fun models(models: Collection<AggregateModel<*>>, codec: EventCodec = EventCodec()): EntryDecoder

Decodes each event into its class through codec and the model of the stream's aggregate among models, upgrading older revisions on the way, and leaves out the events the model retired. A stream of an aggregate with no model fails to decode.