Interface Serializer<T>

All Known Subinterfaces:
ModelType<T>, TextureType<T>
All Known Implementing Classes:
ConnectingModelType, ConnectingTextureType, ScrollingTextureType, UnknownModelType, VanillaModelType, VanillaTextureType

public interface Serializer<T>
Created 27/04/2023 by SuperMartijn642
  • Method Summary

    Modifier and Type
    Method
    Description
    deserialize(com.google.gson.JsonObject json)
    Deserializes the given json to some data.
    com.google.gson.JsonObject
    serialize(T value)
    Serializes the given data to json.
  • Method Details

    • deserialize

      T deserialize(com.google.gson.JsonObject json) throws com.google.gson.JsonParseException
      Deserializes the given json to some data.
      Throws:
      com.google.gson.JsonParseException - if the given json does not match the expected format
    • serialize

      com.google.gson.JsonObject serialize(T value)
      Serializes the given data to json.