fromJson static method
Implementation
static Person? fromJson(jsonObject) {
if (jsonObject == null) return null;
var result = new Person();
result.name = jsonObject["name"];
if (jsonObject["groups"] != null)
for (var item in jsonObject["groups"]) result.groups.add(item);
result.updatedAt = jsonObject["updatedAt"];
result.id = jsonObject["id"];
result.metadata = jsonObject["metadata"];
result.createdAt = jsonObject["createdAt"];
return result;
}