fromJson static method

PersonGroup? fromJson(
  1. dynamic jsonObject
)

Implementation

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

  result.name = jsonObject["name"];
  result.id = jsonObject["id"];
  result.metadata = jsonObject["metadata"];
  result.createdAt = jsonObject["createdAt"];

  return result;
}