toJson method

Map<String, dynamic> toJson()

Converts the UserChatBoosts object to a JSON object.

Implementation

Map<String, dynamic> toJson() {
  return {
    'boosts': boosts.map((boost) => boost.toJson()).toList(),
  };
}