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 (exportLinks != null) {
    _json["exportLinks"] = exportLinks;
  }
  if (id != null) {
    _json["id"] = id;
  }
  if (keepForever != null) {
    _json["keepForever"] = keepForever;
  }
  if (kind != null) {
    _json["kind"] = kind;
  }
  if (lastModifyingUser != null) {
    _json["lastModifyingUser"] = (lastModifyingUser).toJson();
  }
  if (md5Checksum != null) {
    _json["md5Checksum"] = md5Checksum;
  }
  if (mimeType != null) {
    _json["mimeType"] = mimeType;
  }
  if (modifiedTime != null) {
    _json["modifiedTime"] = (modifiedTime).toIso8601String();
  }
  if (originalFilename != null) {
    _json["originalFilename"] = originalFilename;
  }
  if (publishAuto != null) {
    _json["publishAuto"] = publishAuto;
  }
  if (published != null) {
    _json["published"] = published;
  }
  if (publishedOutsideDomain != null) {
    _json["publishedOutsideDomain"] = publishedOutsideDomain;
  }
  if (size != null) {
    _json["size"] = size;
  }
  return _json;
}