Package net.dv8tion.jda.api.utils.data
Interface SerializableData
-
- All Known Subinterfaces:
Button,Component,ComponentLayout,SelectionMenu,VoiceDispatchInterceptor.VoiceUpdate
- All Known Implementing Classes:
ActionRow,BaseCommand,CommandData,CommandPrivilege,DataObject,Emoji,GuildAction.ChannelData,GuildAction.RoleData,MessageEmbed,OptionData,SelectOption,SubcommandData,SubcommandGroupData,VoiceDispatchInterceptor.VoiceServerUpdate,VoiceDispatchInterceptor.VoiceStateUpdate
public interface SerializableDataAllows custom serialization for JSON payloads of an object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataObjecttoData()SerializedDataObjectfor this object.
-
-
-
Method Detail
-
toData
@Nonnull DataObject toData()
SerializedDataObjectfor this object.- Returns:
DataObject
-
-