toMap method

Map<String, dynamic> toMap()

Converts a TextMessageParams object into a map.

Implementation

Map<String, dynamic> toMap() => {
      // 'toJid': toJid,
      'messageText': messageText,
      // 'replyMessageId': replyMessageId,
      // 'mentionedUsersIds': mentionedUsersIds,
      // 'metaData': List<dynamic>.from(metaData.map((x) => x.toMap())),
    };