DeserializationError constructor

DeserializationError(
  1. Object? json,
  2. FullType type,
  3. Error error
)

Implementation

factory DeserializationError(Object? json, FullType type, Error error) {
  var limitedJson = json.toString();
  if (limitedJson.length > 80) {
    limitedJson = limitedJson.replaceRange(77, limitedJson.length, '...');
  }
  return DeserializationError._(limitedJson, type, error);
}