fromJson static method

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

Implementation

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

  for (var item in jsonObject["matchedFaces"]) {
    result._matchedFaces.add(ComparedFacesPair.fromJson(item)!);
  }
  for (var item in jsonObject["unmatchedFaces"]) {
    result._unmatchedFaces.add(ComparedFacesPair.fromJson(item)!);
  }

  return result;
}