decode

fun decode(type: AggregateType, events: List<Any>, codec: EventCodec): List<Any>

events, a published stream's of the aggregate type, each decoded into its api class or kept as a PublishedEvent.