toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'message': message,
      'replyBy': replyBy,
      'replyTo': replyTo,
      'message_type': messageType.name,
      'id': messageId,
      'voiceMessageDuration': voiceMessageDuration?.inMicroseconds,
    };