toJson method

  1. @override
Map<String, dynamic> toJson()
override

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'editChatInviteLink',
    if (extra != null) '@extra': extra,
    'chat_id': chat_id,
    'invite_link': invite_link,
    'name': name,
    'expiration_date': expiration_date,
    'member_limit': member_limit,
    'creates_join_request': creates_join_request
  };
}