package de.dhbwstuttgart.server.packet.dataContainers;

import de.dhbwstuttgart.exceptions.NotImplementedException;
import de.dhbwstuttgart.server.packet.dataContainers.serialized.ISerialNode;
import de.dhbwstuttgart.server.packet.dataContainers.serialized.SerialMap;
import de.dhbwstuttgart.typeinference.unify.UnifyContext;

public interface ISerializableData {

  public abstract ISerialNode toSerial(KeyStorage keyStorage);

  public static Object fromSerial(SerialMap data, UnifyContext context) {
    throw new NotImplementedException("Missing implementation of \"fromSerial\" for a serializable element");
  }

}