ChromeOsDevices.fromJson constructor

ChromeOsDevices.fromJson(
  1. Map _json
)

Implementation

ChromeOsDevices.fromJson(core.Map _json) {
  if (_json.containsKey("chromeosdevices")) {
    chromeosdevices = (_json["chromeosdevices"] as core.List)
        .map<ChromeOsDevice>((value) => new ChromeOsDevice.fromJson(value))
        .toList();
  }
  if (_json.containsKey("etag")) {
    etag = _json["etag"];
  }
  if (_json.containsKey("kind")) {
    kind = _json["kind"];
  }
  if (_json.containsKey("nextPageToken")) {
    nextPageToken = _json["nextPageToken"];
  }
}