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