generate static method

JsonDeserializationException generate(
  1. String? message,
  2. [Type? toType]
)

Implementation

static JsonDeserializationException generate(String? message,
    [Type? toType]) {
  return JsonDeserializationException(message ??
      ErrorMessages.format(
          ErrorMessages.jsonDeserializationError, [toType.toString()]));
}