$get<T> method
Implementation
T $get<T>(Map<String, dynamic> map, String key, [MappingHooks? hooks]) {
return guard(
MapperMethod.decode,
'.$key',
() => hooks.decode<T>(
map[key],
(v) => v == null
? throw MapperException.missingParameter(key)
: fromValue<T>(v),
),
);
}