class Comet::WebAuthnCredentialDescriptor

def to_hash

Returns:
  • (Hash) - The complete object as a Ruby hash
def to_hash
  ret = {}
  ret['type'] = @type
  ret['id'] = Base64.strict_encode64(@credential_id)
  unless @transport.nil?
    ret['transports'] = @transport
  end
  @unknown_json_fields.each do |k, v|
    ret[k] = v
  end
  ret
end