toJSON method
Implementation
Map<String, dynamic> toJSON() => {
'attachments': attachments.map((e) => e.toJSON()).toList(),
'button': activityButton?.toJSON(),
'labels': labels,
'poll': poll?.toJSON(),
'properties': properties,
'text': text,
};