001package arez.spy;
002
003import java.util.Map;
004import javax.annotation.Nonnull;
005
006/**
007 * Interface used to serialize events.
008 * This interface is to enhance debugging and test tools.
009 */
010public interface SerializableEvent
011{
012  /**
013   * Convert event attributes to json compatible values in map.
014   *
015   * @param map the map in which to serialize values.
016   */
017  void toMap( @Nonnull final Map<String, Object> map );
018}