toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (canAddChildren != null) 'canAddChildren': canAddChildren!,
      if (canChangeCopyRequiresWriterPermissionRestriction != null)
        'canChangeCopyRequiresWriterPermissionRestriction':
            canChangeCopyRequiresWriterPermissionRestriction!,
      if (canChangeDomainUsersOnlyRestriction != null)
        'canChangeDomainUsersOnlyRestriction':
            canChangeDomainUsersOnlyRestriction!,
      if (canChangeDriveBackground != null)
        'canChangeDriveBackground': canChangeDriveBackground!,
      if (canChangeDriveMembersOnlyRestriction != null)
        'canChangeDriveMembersOnlyRestriction':
            canChangeDriveMembersOnlyRestriction!,
      if (canChangeSharingFoldersRequiresOrganizerPermissionRestriction !=
          null)
        'canChangeSharingFoldersRequiresOrganizerPermissionRestriction':
            canChangeSharingFoldersRequiresOrganizerPermissionRestriction!,
      if (canComment != null) 'canComment': canComment!,
      if (canCopy != null) 'canCopy': canCopy!,
      if (canDeleteChildren != null) 'canDeleteChildren': canDeleteChildren!,
      if (canDeleteDrive != null) 'canDeleteDrive': canDeleteDrive!,
      if (canDownload != null) 'canDownload': canDownload!,
      if (canEdit != null) 'canEdit': canEdit!,
      if (canListChildren != null) 'canListChildren': canListChildren!,
      if (canManageMembers != null) 'canManageMembers': canManageMembers!,
      if (canReadRevisions != null) 'canReadRevisions': canReadRevisions!,
      if (canRename != null) 'canRename': canRename!,
      if (canRenameDrive != null) 'canRenameDrive': canRenameDrive!,
      if (canResetDriveRestrictions != null)
        'canResetDriveRestrictions': canResetDriveRestrictions!,
      if (canShare != null) 'canShare': canShare!,
      if (canTrashChildren != null) 'canTrashChildren': canTrashChildren!,
    };