fromJson static method

  1. @visibleForTesting
MatchFacesException? fromJson(
  1. dynamic jsonObject
)

Implementation

@visibleForTesting
static MatchFacesException? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  var result = MatchFacesException._privateConstructor();

  result._code = MatchFacesErrorCode.getByValue(jsonObject["code"])!;
  result._message = jsonObject["message"] ?? "";
  result._underlyingError =
      MatchFacesBackendException.fromJson(jsonObject["underlyingError"]);

  return result;
}