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 (childLink != null) {
    _json["childLink"] = (childLink).toJson();
  }
  if (created != null) {
    _json["created"] = (created).toIso8601String();
  }
  if (id != null) {
    _json["id"] = id;
  }
  if (kind != null) {
    _json["kind"] = kind;
  }
  if (name != null) {
    _json["name"] = name;
  }
  if (permissions != null) {
    _json["permissions"] = (permissions).toJson();
  }
  if (selfLink != null) {
    _json["selfLink"] = selfLink;
  }
  if (starred != null) {
    _json["starred"] = starred;
  }
  if (updated != null) {
    _json["updated"] = (updated).toIso8601String();
  }
  return _json;
}