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