Instance Methodvapor 4.114.1Vapor

get(_:default:)

Gets a value from the Extend storage falling back to the default value if it does not exist or cannot be casted to T.

Extendable.swift:82
func get<T>(_ key: String, default d: T) -> T
let foo: Foo = extend.get("foo", default: defaultFoo)