toJSON method

Map<String, dynamic> toJSON()
override

Implementation

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