toJSON method

Map<String, dynamic> toJSON()
override

Implementation

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