JsonExceptionHandlerModel constructor

JsonExceptionHandlerModel({
  1. bool? jsonParseHandle(
    1. JsonUnsupportedObjectError exception
    )?,
  2. ExceptionExplanationModel? jsonParseHandleModel,
})

Creates a JsonExceptionHandlerModel instance.

  • jsonParseHandle: A function that can handle exceptions of type JsonUnsupportedObjectError.
  • jsonParseHandleModel: An explanation model for handling exceptions.

Implementation

JsonExceptionHandlerModel({
  this.jsonParseHandle,
  this.jsonParseHandleModel,
});