toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'toId': toId,
      'preview': preview,
      'user_session': userSession,
      'senderAvatar': senderAvatar,
      'markdown': markdown,
      'receiverAvatar': receiverAvatar,
      'oId': oId,
      'time': time,
      'fromId': fromId,
      'senderUserName': senderUserName,
      'content': content,
      'receiverUserName': receiverUserName,
    };