/* tslint:disable */
/* eslint-disable */
/**
 * Synapse REST API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: v1
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
import { AccessRequirementSearchSortFromJSON, AccessRequirementSearchSortToJSON, } from './AccessRequirementSearchSort';
/**
 * @export
 */
export const AccessRequirementSearchRequestAccessTypeEnum = {
    CREATE: 'CREATE',
    READ: 'READ',
    UPDATE: 'UPDATE',
    DELETE: 'DELETE',
    CHANGE_PERMISSIONS: 'CHANGE_PERMISSIONS',
    DOWNLOAD: 'DOWNLOAD',
    UPLOAD: 'UPLOAD',
    PARTICIPATE: 'PARTICIPATE',
    SUBMIT: 'SUBMIT',
    READ_PRIVATE_SUBMISSION: 'READ_PRIVATE_SUBMISSION',
    UPDATE_SUBMISSION: 'UPDATE_SUBMISSION',
    DELETE_SUBMISSION: 'DELETE_SUBMISSION',
    TEAM_MEMBERSHIP_UPDATE: 'TEAM_MEMBERSHIP_UPDATE',
    SEND_MESSAGE: 'SEND_MESSAGE',
    CHANGE_SETTINGS: 'CHANGE_SETTINGS',
    MODERATE: 'MODERATE',
    REVIEW_SUBMISSIONS: 'REVIEW_SUBMISSIONS',
    EXEMPTION_ELIGIBLE: 'EXEMPTION_ELIGIBLE'
};
/**
 * Check if a given object implements the AccessRequirementSearchRequest interface.
 */
export function instanceOfAccessRequirementSearchRequest(value) {
    return true;
}
export function AccessRequirementSearchRequestFromJSON(json) {
    return AccessRequirementSearchRequestFromJSONTyped(json, false);
}
export function AccessRequirementSearchRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'nameContains': json['nameContains'] == null ? undefined : json['nameContains'],
        'ids': json['ids'] == null ? undefined : json['ids'],
        'relatedProjectId': json['relatedProjectId'] == null ? undefined : json['relatedProjectId'],
        'reviewerId': json['reviewerId'] == null ? undefined : json['reviewerId'],
        'accessType': json['accessType'] == null ? undefined : json['accessType'],
        'type': json['type'] == null ? undefined : json['type'],
        'sort': json['sort'] == null ? undefined : (json['sort'].map(AccessRequirementSearchSortFromJSON)),
        'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
    };
}
export function AccessRequirementSearchRequestToJSON(json) {
    return AccessRequirementSearchRequestToJSONTyped(json, false);
}
export function AccessRequirementSearchRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'nameContains': value['nameContains'],
        'ids': value['ids'],
        'relatedProjectId': value['relatedProjectId'],
        'reviewerId': value['reviewerId'],
        'accessType': value['accessType'],
        'type': value['type'],
        'sort': value['sort'] == null ? undefined : (value['sort'].map(AccessRequirementSearchSortToJSON)),
        'nextPageToken': value['nextPageToken'],
    };
}
//# sourceMappingURL=AccessRequirementSearchRequest.js.map