MapperException.unexpectedType constructor
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.');
}