fromJson static method Null safety

LivenessErrorException? fromJson(
  1. dynamic jsonObject
)

Implementation

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

  result.errorCode = jsonObject["errorCode"];
  result.message = jsonObject["message"];

  return result;
}