fromJson static method

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

Implementation

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

  result._path = jsonObject["path"];
  result._url = jsonObject["url"];
  result._contentType = jsonObject["contentType"];
  result._id = jsonObject["id"];
  result._metadata = jsonObject["metadata"];
  result._createdAt = DateTime.parse(jsonObject["createdAt"]);

  return result;
}