toJson method

Map<String, Object> toJson ()

Implementation

core.Map<core.String, core.Object> toJson() {
  final core.Map<core.String, core.Object> _json =
      new core.Map<core.String, core.Object>();
  if (dnsKeysPerManagedZone != null) {
    _json["dnsKeysPerManagedZone"] = dnsKeysPerManagedZone;
  }
  if (kind != null) {
    _json["kind"] = kind;
  }
  if (managedZones != null) {
    _json["managedZones"] = managedZones;
  }
  if (managedZonesPerNetwork != null) {
    _json["managedZonesPerNetwork"] = managedZonesPerNetwork;
  }
  if (networksPerManagedZone != null) {
    _json["networksPerManagedZone"] = networksPerManagedZone;
  }
  if (resourceRecordsPerRrset != null) {
    _json["resourceRecordsPerRrset"] = resourceRecordsPerRrset;
  }
  if (rrsetAdditionsPerChange != null) {
    _json["rrsetAdditionsPerChange"] = rrsetAdditionsPerChange;
  }
  if (rrsetDeletionsPerChange != null) {
    _json["rrsetDeletionsPerChange"] = rrsetDeletionsPerChange;
  }
  if (rrsetsPerManagedZone != null) {
    _json["rrsetsPerManagedZone"] = rrsetsPerManagedZone;
  }
  if (totalRrdataSizePerChange != null) {
    _json["totalRrdataSizePerChange"] = totalRrdataSizePerChange;
  }
  if (whitelistedKeySpecs != null) {
    _json["whitelistedKeySpecs"] =
        whitelistedKeySpecs.map((value) => (value).toJson()).toList();
  }
  return _json;
}