fromJson static method
Implementation
@visibleForTesting
static LivenessException? fromJson(jsonObject) {
if (jsonObject == null) return null;
var result = LivenessException._privateConstructor();
result._code = LivenessErrorCode.getByValue(jsonObject["code"])!;
result._message = jsonObject["message"] ?? "";
result._underlyingError =
LivenessBackendException.fromJson(jsonObject["underlyingError"]);
return result;
}