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 TypeMethodDescriptiondeserialize(com.google.gson.JsonObject json) Deserializes the given json to some data.com.google.gson.JsonObjectSerializes the given data to json.
-
Method Details
-
deserialize
Deserializes the given json to some data.- Throws:
com.google.gson.JsonParseException- if the given json does not match the expected format
-
serialize
Serializes the given data to json.
-