toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (appProperties != null) 'appProperties': appProperties!,
      if (capabilities != null) 'capabilities': capabilities!,
      if (contentHints != null) 'contentHints': contentHints!,
      if (contentRestrictions != null)
        'contentRestrictions': contentRestrictions!,
      if (copyRequiresWriterPermission != null)
        'copyRequiresWriterPermission': copyRequiresWriterPermission!,
      if (createdTime != null)
        'createdTime': createdTime!.toUtc().toIso8601String(),
      if (description != null) 'description': description!,
      if (driveId != null) 'driveId': driveId!,
      if (explicitlyTrashed != null) 'explicitlyTrashed': explicitlyTrashed!,
      if (exportLinks != null) 'exportLinks': exportLinks!,
      if (fileExtension != null) 'fileExtension': fileExtension!,
      if (folderColorRgb != null) 'folderColorRgb': folderColorRgb!,
      if (fullFileExtension != null) 'fullFileExtension': fullFileExtension!,
      if (hasAugmentedPermissions != null)
        'hasAugmentedPermissions': hasAugmentedPermissions!,
      if (hasThumbnail != null) 'hasThumbnail': hasThumbnail!,
      if (headRevisionId != null) 'headRevisionId': headRevisionId!,
      if (iconLink != null) 'iconLink': iconLink!,
      if (id != null) 'id': id!,
      if (imageMediaMetadata != null)
        'imageMediaMetadata': imageMediaMetadata!,
      if (isAppAuthorized != null) 'isAppAuthorized': isAppAuthorized!,
      if (kind != null) 'kind': kind!,
      if (labelInfo != null) 'labelInfo': labelInfo!,
      if (lastModifyingUser != null) 'lastModifyingUser': lastModifyingUser!,
      if (linkShareMetadata != null) 'linkShareMetadata': linkShareMetadata!,
      if (md5Checksum != null) 'md5Checksum': md5Checksum!,
      if (mimeType != null) 'mimeType': mimeType!,
      if (modifiedByMe != null) 'modifiedByMe': modifiedByMe!,
      if (modifiedByMeTime != null)
        'modifiedByMeTime': modifiedByMeTime!.toUtc().toIso8601String(),
      if (modifiedTime != null)
        'modifiedTime': modifiedTime!.toUtc().toIso8601String(),
      if (name != null) 'name': name!,
      if (originalFilename != null) 'originalFilename': originalFilename!,
      if (ownedByMe != null) 'ownedByMe': ownedByMe!,
      if (owners != null) 'owners': owners!,
      if (parents != null) 'parents': parents!,
      if (permissionIds != null) 'permissionIds': permissionIds!,
      if (permissions != null) 'permissions': permissions!,
      if (properties != null) 'properties': properties!,
      if (quotaBytesUsed != null) 'quotaBytesUsed': quotaBytesUsed!,
      if (resourceKey != null) 'resourceKey': resourceKey!,
      if (sha1Checksum != null) 'sha1Checksum': sha1Checksum!,
      if (sha256Checksum != null) 'sha256Checksum': sha256Checksum!,
      if (shared != null) 'shared': shared!,
      if (sharedWithMeTime != null)
        'sharedWithMeTime': sharedWithMeTime!.toUtc().toIso8601String(),
      if (sharingUser != null) 'sharingUser': sharingUser!,
      if (shortcutDetails != null) 'shortcutDetails': shortcutDetails!,
      if (size != null) 'size': size!,
      if (spaces != null) 'spaces': spaces!,
      if (starred != null) 'starred': starred!,
      if (teamDriveId != null) 'teamDriveId': teamDriveId!,
      if (thumbnailLink != null) 'thumbnailLink': thumbnailLink!,
      if (thumbnailVersion != null) 'thumbnailVersion': thumbnailVersion!,
      if (trashed != null) 'trashed': trashed!,
      if (trashedTime != null)
        'trashedTime': trashedTime!.toUtc().toIso8601String(),
      if (trashingUser != null) 'trashingUser': trashingUser!,
      if (version != null) 'version': version!,
      if (videoMediaMetadata != null)
        'videoMediaMetadata': videoMediaMetadata!,
      if (viewedByMe != null) 'viewedByMe': viewedByMe!,
      if (viewedByMeTime != null)
        'viewedByMeTime': viewedByMeTime!.toUtc().toIso8601String(),
      if (viewersCanCopyContent != null)
        'viewersCanCopyContent': viewersCanCopyContent!,
      if (webContentLink != null) 'webContentLink': webContentLink!,
      if (webViewLink != null) 'webViewLink': webViewLink!,
      if (writersCanShare != null) 'writersCanShare': writersCanShare!,
    };