Quota.fromJson constructor

Quota.fromJson(
  1. Map _json
)

Implementation

Quota.fromJson(core.Map _json) {
  if (_json.containsKey("dnsKeysPerManagedZone")) {
    dnsKeysPerManagedZone = _json["dnsKeysPerManagedZone"];
  }
  if (_json.containsKey("kind")) {
    kind = _json["kind"];
  }
  if (_json.containsKey("managedZones")) {
    managedZones = _json["managedZones"];
  }
  if (_json.containsKey("managedZonesPerNetwork")) {
    managedZonesPerNetwork = _json["managedZonesPerNetwork"];
  }
  if (_json.containsKey("networksPerManagedZone")) {
    networksPerManagedZone = _json["networksPerManagedZone"];
  }
  if (_json.containsKey("resourceRecordsPerRrset")) {
    resourceRecordsPerRrset = _json["resourceRecordsPerRrset"];
  }
  if (_json.containsKey("rrsetAdditionsPerChange")) {
    rrsetAdditionsPerChange = _json["rrsetAdditionsPerChange"];
  }
  if (_json.containsKey("rrsetDeletionsPerChange")) {
    rrsetDeletionsPerChange = _json["rrsetDeletionsPerChange"];
  }
  if (_json.containsKey("rrsetsPerManagedZone")) {
    rrsetsPerManagedZone = _json["rrsetsPerManagedZone"];
  }
  if (_json.containsKey("totalRrdataSizePerChange")) {
    totalRrdataSizePerChange = _json["totalRrdataSizePerChange"];
  }
  if (_json.containsKey("whitelistedKeySpecs")) {
    whitelistedKeySpecs = (_json["whitelistedKeySpecs"] as core.List)
        .map<DnsKeySpec>((value) => new DnsKeySpec.fromJson(value))
        .toList();
  }
}