/* 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 UserSubmissionSearchRequestSubmissionStateEnum = {
    SUBMITTED: 'SUBMITTED',
    APPROVED: 'APPROVED',
    REJECTED: 'REJECTED',
    CANCELLED: 'CANCELLED'
};
/**
 * Check if a given object implements the UserSubmissionSearchRequest interface.
 */
export function instanceOfUserSubmissionSearchRequest(value) {
    return true;
}
export function UserSubmissionSearchRequestFromJSON(json) {
    return UserSubmissionSearchRequestFromJSONTyped(json, false);
}
export function UserSubmissionSearchRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'accessRequirementId': json['accessRequirementId'] == null ? undefined : json['accessRequirementId'],
        'submissionState': json['submissionState'] == null ? undefined : json['submissionState'],
        'sort': json['sort'] == null ? undefined : (json['sort'].map(SubmissionSearchSortFromJSON)),
        'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
    };
}
export function UserSubmissionSearchRequestToJSON(json) {
    return UserSubmissionSearchRequestToJSONTyped(json, false);
}
export function UserSubmissionSearchRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'accessRequirementId': value['accessRequirementId'],
        'submissionState': value['submissionState'],
        'sort': value['sort'] == null ? undefined : (value['sort'].map(SubmissionSearchSortToJSON)),
        'nextPageToken': value['nextPageToken'],
    };
}
//# sourceMappingURL=UserSubmissionSearchRequest.js.map