class Comet::WebAuthnCredentialEntity

def to_hash

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