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 (canChangeSharingFoldersRequiresOrganizerPermissionRestriction !=
          null)
        'canChangeSharingFoldersRequiresOrganizerPermissionRestriction':
            canChangeSharingFoldersRequiresOrganizerPermissionRestriction!,
      if (canChangeTeamDriveBackground != null)
        'canChangeTeamDriveBackground': canChangeTeamDriveBackground!,
      if (canChangeTeamMembersOnlyRestriction != null)
        'canChangeTeamMembersOnlyRestriction':
            canChangeTeamMembersOnlyRestriction!,
      if (canComment != null) 'canComment': canComment!,
      if (canCopy != null) 'canCopy': canCopy!,
      if (canDeleteChildren != null) 'canDeleteChildren': canDeleteChildren!,
      if (canDeleteTeamDrive != null)
        'canDeleteTeamDrive': canDeleteTeamDrive!,
      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 (canRemoveChildren != null) 'canRemoveChildren': canRemoveChildren!,
      if (canRename != null) 'canRename': canRename!,
      if (canRenameTeamDrive != null)
        'canRenameTeamDrive': canRenameTeamDrive!,
      if (canResetTeamDriveRestrictions != null)
        'canResetTeamDriveRestrictions': canResetTeamDriveRestrictions!,
      if (canShare != null) 'canShare': canShare!,
      if (canTrashChildren != null) 'canTrashChildren': canTrashChildren!,
    };