// unmarshal converts a event instance to []byte.
unmarshal converts a event instance to []byte.
// unmarshal converts a event instance to [] byte .
func unmarshal(message kafka.Message) (*models.ReindexRequested, error) {
	var event models.ReindexRequested
	err := schema.ReindexRequestedEvent.Unmarshal(message.GetData(), &event)
	return &event, err
}
func unmarshal ( message kafka . Message ) ( * models . ReindexRequested , error ) { var event models . ReindexRequested err := schema . ReindexRequestedEvent . Unmarshal ( message . GetData ( ) , & event ) return & event , err }
unmarshal converts a event instance to []byte.
unmarshal converts a event instance to [] byte .