toMap method

Map<String, dynamic> toMap()

Converts a FileMessage object into a map.

Implementation

Map<String, dynamic> toMap() => {
      'toJid': toJid,
      'replyMessageId': replyMessageId,
      'messageType': messageType?.value,
      'mentionedUsersIds': mentionedUsersIds,
      'metaData': List<dynamic>.from(metaData.map((x) => x.toMap())),
      'locationMessage': locationMessage?.toMap(),
      'contactMessage': contactMessage?.toMap(),
      'fileMessage': fileMessage?.toMap(),
      'topicId': topicId,
    };