expect method
Throws an exception with a detailed message.
Implementation
@override
Never expect(String key, String expected, {int? id}) {
throw CodableException.wrap(
CodableException.unexpectedType(expected: expected, actual: '${_value[key].runtimeType}', data: _value[key]),
method: 'decode',
hint: '["$key"]',
);
}