toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'chatTypeSupergroup',
if (extra != null) '@extra': extra,
'supergroup_id': supergroup_id,
'is_channel': is_channel
};
}