Account.fromJson constructor

Account.fromJson(
  1. Map _json
)

Implementation

Account.fromJson(core.Map _json) {
  if (_json.containsKey("childLink")) {
    childLink = new AccountChildLink.fromJson(_json["childLink"]);
  }
  if (_json.containsKey("created")) {
    created = core.DateTime.parse(_json["created"]);
  }
  if (_json.containsKey("id")) {
    id = _json["id"];
  }
  if (_json.containsKey("kind")) {
    kind = _json["kind"];
  }
  if (_json.containsKey("name")) {
    name = _json["name"];
  }
  if (_json.containsKey("permissions")) {
    permissions = new AccountPermissions.fromJson(_json["permissions"]);
  }
  if (_json.containsKey("selfLink")) {
    selfLink = _json["selfLink"];
  }
  if (_json.containsKey("starred")) {
    starred = _json["starred"];
  }
  if (_json.containsKey("updated")) {
    updated = core.DateTime.parse(_json["updated"]);
  }
}