fromJson static method

LivenessResponse? fromJson(
  1. dynamic jsonObject
)

Implementation

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

  result.bitmap = jsonObject["bitmap"];
  result.liveness = jsonObject["liveness"];
  result.tag = jsonObject["tag"];
  result.transactionId = jsonObject["transactionId"];
  result.estimatedAge = jsonObject["estimatedAge"];
  result.exception = LivenessErrorException.fromJson(jsonObject["exception"]);

  return result;
}