Webproperties.fromJson constructor

Webproperties.fromJson(
  1. Map _json
)

Implementation

Webproperties.fromJson(core.Map _json) {
  if (_json.containsKey("items")) {
    items = (_json["items"] as core.List)
        .map<Webproperty>((value) => new Webproperty.fromJson(value))
        .toList();
  }
  if (_json.containsKey("itemsPerPage")) {
    itemsPerPage = _json["itemsPerPage"];
  }
  if (_json.containsKey("kind")) {
    kind = _json["kind"];
  }
  if (_json.containsKey("nextLink")) {
    nextLink = _json["nextLink"];
  }
  if (_json.containsKey("previousLink")) {
    previousLink = _json["previousLink"];
  }
  if (_json.containsKey("startIndex")) {
    startIndex = _json["startIndex"];
  }
  if (_json.containsKey("totalResults")) {
    totalResults = _json["totalResults"];
  }
  if (_json.containsKey("username")) {
    username = _json["username"];
  }
}