fromJson static method

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

Implementation

@visibleForTesting
static SearchPersonRequest? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  return SearchPersonRequest(
    ImageUpload.fromJson(jsonObject["imageUpload"])!,
    groupIdsForSearch: jsonObject["groupIdsForSearch"],
    threshold: _toDouble(jsonObject["threshold"]),
    limit: jsonObject["limit"],
    detectAll: jsonObject["detectAll"],
    outputImageParams:
        OutputImageParams.fromJson(jsonObject["outputImageParams"]),
  );
}