$dec<T> method

T $dec<T>(
  1. dynamic value,
  2. String key, [
  3. MappingHooks? hooks
])

Implementation

T $dec<T>(dynamic value, String key, [MappingHooks? hooks]) {
  return guard(
    MapperMethod.decode,
    '.$key',
    () => hooks.decode<T>(value, fromValue),
  );
}