dataType<T> method
Retrieves the value associated with key
from the request data, cast to type T
.
Implementation
T dataType<T>(String key, {T? def}) {
var map = getAllData();
T res = map[key].asCast<T>(def: def) as T;
return res;
}