fromJson static method

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

Implementation

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

  result._code = LivenessBackendErrorCode.getByValue(jsonObject["code"])!;
  result._message = jsonObject["message"] ?? "";

  return result;
}