fromJson static method

DocumentReaderException? fromJson(
  1. dynamic jsonObject
)

Implementation

static DocumentReaderException? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  var result = new DocumentReaderException();

  result.errorCode = jsonObject["errorCode"];
  result.localizedMessage = jsonObject["localizedMessage"];
  result.message = jsonObject["message"];
  result.string = jsonObject["string"];
  if (jsonObject["stackTrace"] != null)
    for (var item in jsonObject["stackTrace"])
      result.stackTrace.add(StackTraceElement.fromJson(item));

  return result;
}