fromJson static method

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

Implementation

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

  result._status = LivenessProcessStatus.getByValue(jsonObject["status"])!;
  result._response = LivenessResponse.fromJson(jsonObject["response"]);

  return result;
}