toJson method
Serialize this to json.
Implementation
Object toJson () {
final List<dynamic> _embeds = embeds != null
? List<dynamic>.from(embeds!.map((e) => e.toJson()))
: [];
final List<dynamic> _components = components?.rows != null
? List<dynamic>.from(components!.rows.map((e) => e.toJson()))
: [];
final List<dynamic> _stickers = stickers != null
? List<dynamic>.from(stickers!.map((e) => e.toJson()))
: [];
return {
'content': content,
'embeds': _embeds,
'components': _components,
'stickers': _stickers
};
}