toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (downloadUrl != null) 'downloadUrl': downloadUrl!,
      if (etag != null) 'etag': etag!,
      if (exportLinks != null) 'exportLinks': exportLinks!,
      if (fileSize != null) 'fileSize': fileSize!,
      if (id != null) 'id': id!,
      if (kind != null) 'kind': kind!,
      if (lastModifyingUser != null) 'lastModifyingUser': lastModifyingUser!,
      if (lastModifyingUserName != null)
        'lastModifyingUserName': lastModifyingUserName!,
      if (md5Checksum != null) 'md5Checksum': md5Checksum!,
      if (mimeType != null) 'mimeType': mimeType!,
      if (modifiedDate != null)
        'modifiedDate': modifiedDate!.toUtc().toIso8601String(),
      if (originalFilename != null) 'originalFilename': originalFilename!,
      if (pinned != null) 'pinned': pinned!,
      if (publishAuto != null) 'publishAuto': publishAuto!,
      if (published != null) 'published': published!,
      if (publishedLink != null) 'publishedLink': publishedLink!,
      if (publishedOutsideDomain != null)
        'publishedOutsideDomain': publishedOutsideDomain!,
      if (selfLink != null) 'selfLink': selfLink!,
    };