fromJson static method
Person?
fromJson(
- dynamic jsonObject
)
Implementation
@visibleForTesting
static Person? fromJson(jsonObject) {
if (jsonObject == null) return null;
var result = Person._privateConstructor();
result.name = jsonObject["name"];
result._updatedAt = DateTime.parse(jsonObject["updatedAt"]);
result._groups = _stringListFrom((jsonObject["groups"]))!;
result._id = jsonObject["id"];
result.metadata = jsonObject["metadata"];
result._createdAt = DateTime.parse(jsonObject["createdAt"]);
return result;
}