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 (id != null) {
    _json["id"] = id;
  }
  if (kind != null) {
    _json["kind"] = kind;
  }
  if (name != null) {
    _json["name"] = name;
  }
  if (starred != null) {
    _json["starred"] = starred;
  }
  if (type != null) {
    _json["type"] = type;
  }
  return _json;
}