/* 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 { SubmissionSearchSortFromJSON, SubmissionSearchSortToJSON, } from './SubmissionSearchSort';
/**
 * @export
 */
export const SubmissionSearchRequestSubmissionStateEnum = {
    SUBMITTED: 'SUBMITTED',
    APPROVED: 'APPROVED',
    REJECTED: 'REJECTED',
    CANCELLED: 'CANCELLED'
};
/**
 * @export
 */
export const SubmissionSearchRequestReviewerFilterTypeEnum = {
    ALL: 'ALL',
    ACT_ONLY: 'ACT_ONLY',
    DELEGATED_ONLY: 'DELEGATED_ONLY'
};
/**
 * Check if a given object implements the SubmissionSearchRequest interface.
 */
export function instanceOfSubmissionSearchRequest(value) {
    return true;
}
export function SubmissionSearchRequestFromJSON(json) {
    return SubmissionSearchRequestFromJSONTyped(json, false);
}
export function SubmissionSearchRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'accessorId': json['accessorId'] == null ? undefined : json['accessorId'],
        'accessRequirementId': json['accessRequirementId'] == null ? undefined : json['accessRequirementId'],
        'submissionState': json['submissionState'] == null ? undefined : json['submissionState'],
        'reviewerId': json['reviewerId'] == null ? undefined : json['reviewerId'],
        'reviewerFilterType': json['reviewerFilterType'] == null ? undefined : json['reviewerFilterType'],
        'sort': json['sort'] == null ? undefined : (json['sort'].map(SubmissionSearchSortFromJSON)),
        'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
    };
}
export function SubmissionSearchRequestToJSON(json) {
    return SubmissionSearchRequestToJSONTyped(json, false);
}
export function SubmissionSearchRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'accessorId': value['accessorId'],
        'accessRequirementId': value['accessRequirementId'],
        'submissionState': value['submissionState'],
        'reviewerId': value['reviewerId'],
        'reviewerFilterType': value['reviewerFilterType'],
        'sort': value['sort'] == null ? undefined : (value['sort'].map(SubmissionSearchSortToJSON)),
        'nextPageToken': value['nextPageToken'],
    };
}
//# sourceMappingURL=SubmissionSearchRequest.js.map