MapperException.unexpectedType constructor

MapperException.unexpectedType(
  1. Type actual,
  2. String expected
)

Exception when passing an unexpected type to a decoder.

Implementation

factory MapperException.unexpectedType(Type actual, String expected) {
  return MapperException._(
      'Expected a value of type $expected, but got type $actual.');
}