toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'chatInviteLink',
    if (extra != null) '@extra': extra,
    'invite_link': invite_link,
    'name': name,
    'creator_user_id': creator_user_id,
    'date': date,
    'edit_date': edit_date,
    'expiration_date': expiration_date,
    'member_limit': member_limit,
    'member_count': member_count,
    'pending_join_request_count': pending_join_request_count,
    'creates_join_request': creates_join_request,
    'is_primary': is_primary,
    'is_revoked': is_revoked
  };
}