toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts to JSON encodable Map

Implementation

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