Object to Map serializer
@override Map<String, dynamic> toJson() { return { '@type': 'chatEventIsForumToggled', if (extra != null) '@extra': extra, 'is_forum': is_forum }; }