fromJson static method

PersonImage? fromJson(
  1. dynamic jsonObject
)

Implementation

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

  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;
}