Class PluginDependencyLoadOrderAdapter
java.lang.Object
org.spongepowered.plugin.metadata.builtin.adapter.model.PluginDependencyLoadOrderAdapter
- All Implemented Interfaces:
JsonDeserializer<PluginDependency.LoadOrder>,JsonSerializer<PluginDependency.LoadOrder>
public final class PluginDependencyLoadOrderAdapter
extends Object
implements JsonSerializer<PluginDependency.LoadOrder>, JsonDeserializer<PluginDependency.LoadOrder>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(JsonElement element, Type type, JsonDeserializationContext context) serialize(PluginDependency.LoadOrder value, Type type, JsonSerializationContext context)
-
Constructor Details
-
PluginDependencyLoadOrderAdapter
public PluginDependencyLoadOrderAdapter()
-
-
Method Details
-
deserialize
public PluginDependency.LoadOrder deserialize(JsonElement element, Type type, JsonDeserializationContext context) throws JsonParseException - Specified by:
deserializein interfaceJsonDeserializer<PluginDependency.LoadOrder>- Throws:
JsonParseException
-
serialize
public JsonElement serialize(PluginDependency.LoadOrder value, Type type, JsonSerializationContext context) - Specified by:
serializein interfaceJsonSerializer<PluginDependency.LoadOrder>
-