log

fun WarningLogger.log(modelClass: Class<*>, reason: String, json: JSONObject? = null, severity: Warning.SeverityLevel = Warning.SeverityLevel.MAJOR)

Raises a JsonWarning.

Parameters

modelClass

Class of the model object to be parsed.

reason

Details about the failure.

severity

The severity level of this warning.

json

Source JSONObject.