toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'createChatInviteLink',
if (extra != null) '@extra': extra,
'chat_id': chat_id,
'name': name,
'expiration_date': expiration_date,
'member_limit': member_limit,
'creates_join_request': creates_join_request
};
}