PoliciesListResponse.fromJson constructor

PoliciesListResponse.fromJson(
  1. Map _json
)

Implementation

PoliciesListResponse.fromJson(core.Map _json) {
  if (_json.containsKey("header")) {
    header = new ResponseHeader.fromJson(_json["header"]);
  }
  if (_json.containsKey("kind")) {
    kind = _json["kind"];
  }
  if (_json.containsKey("nextPageToken")) {
    nextPageToken = _json["nextPageToken"];
  }
  if (_json.containsKey("policies")) {
    policies = (_json["policies"] as core.List)
        .map<Policy>((value) => new Policy.fromJson(value))
        .toList();
  }
}