fromJson static method

SearchPersonImage? fromJson(
  1. dynamic jsonObject
)

Implementation

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

  result.similarity = jsonObject["similarity"] == null
      ? null
      : jsonObject["similarity"].toDouble();
  result.distance = jsonObject["distance"] == null
      ? null
      : jsonObject["distance"].toDouble();
  result.path = jsonObject["path"];
  result.url = jsonObject["url"];
  result.contentType = jsonObject["contentType"];
  result.id = jsonObject["id"];
  result.metadata = jsonObject["metadata"];
  result.createdAt = jsonObject["createdAt"];

  return result;
}