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 (host != null) {
    _json["host"] = host;
  }
  if (instance != null) {
    _json["instance"] = instance;
  }
  if (service != null) {
    _json["service"] = service;
  }
  if (version != null) {
    _json["version"] = version;
  }
  return _json;
}