BaseController.get

Gets a value from the passed data.

class BaseController
protected final
T
get
(
T
)
(
string name
,
T defaultValue = T.init
)

Parameters

name string

The name of the value to get.

defaultValue T

The default value.

Return Value

Type: T

Returns the value if found, else the default value.

Meta