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