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