toJson method

Map<String, dynamic> toJson()

Converts the ChatModel instance to a JSON object.

Returns a map representing the JSON object.

Implementation

Map<String, dynamic> toJson() => {
      'chat': chat,
      'message': message,
      'time': time,
    };