toJson method

Map<String, dynamic> toJson()

Returns JSON-encodeable map of this object.

Implementation

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