toJson method

Map<String, dynamic> toJson()

Converts to JSON encodable Map

Implementation

Map<String, dynamic> toJson() {
  return {
    'chat': chat.toJson(),
    'message_id': messageId,
    'date': date,
  };
}