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