toStateAggregate
fun <S : Any> AggregateMetadata<*, S>.toStateAggregate(state: S, version: Int, eventId: String = "", firstOperator: String = "", operator: String = "", firstEventTime: Long = 0, eventTime: Long = 0, deleted: Boolean = false): StateAggregate<S>
fun <S : Any> StateAggregateMetadata<S>.toStateAggregate(aggregateId: AggregateId, state: S, version: Int, eventId: String = "", firstOperator: String = "", operator: String = "", firstEventTime: Long = 0, eventTime: Long = 0, deleted: Boolean = false): StateAggregate<S>