IncorrectTypeTransform constructor

IncorrectTypeTransform(
  1. Object value,
  2. String type, [
  3. String key = "unknown"
])

Implementation

IncorrectTypeTransform(Object value, String type, [String key = "unknown"]) :
  _type = type,
  _field = key,
  _foundType = reflectType(value.runtimeType)?.name ?? value.runtimeType.toString();