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