class Comet::WebAuthnAuthenticatorSelection

def to_hash

Returns:
  • (Hash) - The complete object as a Ruby hash
def to_hash
  ret = {}
  unless @authenticator_attachment.nil?
    ret['authenticatorAttachment'] = @authenticator_attachment
  end
  unless @require_resident_key.nil?
    ret['requireResidentKey'] = @require_resident_key
  end
  unless @resident_key.nil?
    ret['residentKey'] = @resident_key
  end
  unless @user_verification.nil?
    ret['userVerification'] = @user_verification
  end
  @unknown_json_fields.each do |k, v|
    ret[k] = v
  end
  ret
end