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 (alternativeNameServerConfig != null) {
    _json["alternativeNameServerConfig"] =
        (alternativeNameServerConfig).toJson();
  }
  if (description != null) {
    _json["description"] = description;
  }
  if (enableInboundForwarding != null) {
    _json["enableInboundForwarding"] = enableInboundForwarding;
  }
  if (enableLogging != null) {
    _json["enableLogging"] = enableLogging;
  }
  if (id != null) {
    _json["id"] = id;
  }
  if (kind != null) {
    _json["kind"] = kind;
  }
  if (name != null) {
    _json["name"] = name;
  }
  if (networks != null) {
    _json["networks"] = networks.map((value) => (value).toJson()).toList();
  }
  return _json;
}