Package com.slack.api.util.json
Class GsonMessageAttachmentVideoHtmlFactory
java.lang.Object
com.slack.api.util.json.GsonMessageAttachmentVideoHtmlFactory
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<Attachment.VideoHtml>
,com.google.gson.JsonSerializer<Attachment.VideoHtml>
public class GsonMessageAttachmentVideoHtmlFactory
extends Object
implements com.google.gson.JsonDeserializer<Attachment.VideoHtml>, com.google.gson.JsonSerializer<Attachment.VideoHtml>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) com.google.gson.JsonElement
serialize
(Attachment.VideoHtml src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
-
Constructor Details
-
GsonMessageAttachmentVideoHtmlFactory
public GsonMessageAttachmentVideoHtmlFactory() -
GsonMessageAttachmentVideoHtmlFactory
public GsonMessageAttachmentVideoHtmlFactory(boolean failOnUnknownProperties)
-
-
Method Details
-
deserialize
public Attachment.VideoHtml 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<Attachment.VideoHtml>
- Throws:
com.google.gson.JsonParseException
-
serialize
public com.google.gson.JsonElement serialize(Attachment.VideoHtml src, Type typeOfSrc, com.google.gson.JsonSerializationContext context) - Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<Attachment.VideoHtml>
-