fromJson static method

Search? fromJson(
  1. dynamic jsonObject
)

Implementation

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

  result.limit = jsonObject["limit"];
  result.threshold = jsonObject["threshold"] == null ? null : jsonObject["threshold"].toDouble();
  if (jsonObject["groupIds"] != null)
    for (var item in jsonObject["groupIds"])
      result.groupIds.add(item);

  return result;
}