get<T> method

T get<T>(
  1. String key, {
  2. MappingHooks? hooks,
})

Implementation

T get<T>(String key, {MappingHooks? hooks}) => hooked(hooks, key, (v) {
  if (v == null) {
    throw MapperException('Parameter $key is required.');
  }
  return Mapper.fromValue<T>(v);
});