ChildList.fromJson constructor

ChildList.fromJson(
  1. Map _json
)

Implementation

ChildList.fromJson(core.Map _json) {
  if (_json.containsKey("etag")) {
    etag = _json["etag"];
  }
  if (_json.containsKey("items")) {
    items = (_json["items"] as core.List)
        .map<ChildReference>((value) => new ChildReference.fromJson(value))
        .toList();
  }
  if (_json.containsKey("kind")) {
    kind = _json["kind"];
  }
  if (_json.containsKey("nextLink")) {
    nextLink = _json["nextLink"];
  }
  if (_json.containsKey("nextPageToken")) {
    nextPageToken = _json["nextPageToken"];
  }
  if (_json.containsKey("selfLink")) {
    selfLink = _json["selfLink"];
  }
}