Package masecla.modrinth4j.model.search
Class FacetCollection.FacetAdapter
java.lang.Object
com.google.gson.TypeAdapter<FacetCollection>
masecla.modrinth4j.model.search.FacetCollection.FacetAdapter
- Enclosing class:
FacetCollection
public static class FacetCollection.FacetAdapter
extends com.google.gson.TypeAdapter<FacetCollection>
This is a
TypeAdapter for FacetCollection. It is used to
serialize and deserialize FacetCollection objects.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread(com.google.gson.stream.JsonReader in) Deserializes a JSON string into aFacetCollectionobject.voidwrite(com.google.gson.stream.JsonWriter out, FacetCollection value) Serializes aFacetCollectionobject into a JSON string.Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Constructor Details
-
FacetAdapter
public FacetAdapter()
-
-
Method Details
-
write
Serializes aFacetCollectionobject into a JSON string.- Specified by:
writein classcom.google.gson.TypeAdapter<FacetCollection>- Throws:
IOException
-
read
Deserializes a JSON string into aFacetCollectionobject.- Specified by:
readin classcom.google.gson.TypeAdapter<FacetCollection>- Throws:
IOException
-