module WebAuthn::AttestationStatement

def self.from(format, statement, relying_party: WebAuthn.configuration.relying_party)

def self.from(format, statement, relying_party: WebAuthn.configuration.relying_party)
  klass = FORMAT_TO_CLASS[format]
  if klass
    klass.new(statement, relying_party)
  else
    raise(FormatNotSupportedError, "Unsupported attestation format '#{format}'")
  end
end