Package com.slack.api.util.json
Class GsonRichTextElementFactory
- java.lang.Object
-
- com.slack.api.util.json.GsonRichTextElementFactory
-
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<RichTextElement>
,com.google.gson.JsonSerializer<RichTextElement>
public class GsonRichTextElementFactory extends Object implements com.google.gson.JsonDeserializer<RichTextElement>, com.google.gson.JsonSerializer<RichTextElement>
https://api.slack.com/changelog/2019-09-what-they-see-is-what-you-get-and-more-and-less
-
-
Constructor Summary
Constructors Constructor Description GsonRichTextElementFactory()
GsonRichTextElementFactory(boolean failOnUnknownProperties)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RichTextElement
deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context)
static Class<? extends RichTextElement>
detectElementClass(String className)
Deprecated.com.google.gson.JsonElement
serialize(RichTextElement src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
-
-
-
Method Detail
-
deserialize
public RichTextElement deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
- Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<RichTextElement>
- Throws:
com.google.gson.JsonParseException
-
serialize
public com.google.gson.JsonElement serialize(RichTextElement src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
- Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<RichTextElement>
-
detectElementClass
@Deprecated public static Class<? extends RichTextElement> detectElementClass(String className)
Deprecated.
-
-