/* 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 { AccessorChangeFromJSON, AccessorChangeToJSON, } from './AccessorChange';
/**
 * @export
 */
export const SubmissionSearchResultStateEnum = {
    SUBMITTED: 'SUBMITTED',
    APPROVED: 'APPROVED',
    REJECTED: 'REJECTED',
    CANCELLED: 'CANCELLED'
};
/**
 * Check if a given object implements the SubmissionSearchResult interface.
 */
export function instanceOfSubmissionSearchResult(value) {
    return true;
}
export function SubmissionSearchResultFromJSON(json) {
    return SubmissionSearchResultFromJSONTyped(json, false);
}
export function SubmissionSearchResultFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'id': json['id'] == null ? undefined : json['id'],
        'createdOn': json['createdOn'] == null ? undefined : json['createdOn'],
        'modifiedOn': json['modifiedOn'] == null ? undefined : json['modifiedOn'],
        'accessRequirementId': json['accessRequirementId'] == null ? undefined : json['accessRequirementId'],
        'accessRequirementVersion': json['accessRequirementVersion'] == null ? undefined : json['accessRequirementVersion'],
        'accessRequirementName': json['accessRequirementName'] == null ? undefined : json['accessRequirementName'],
        'accessRequirementReviewerIds': json['accessRequirementReviewerIds'] == null ? undefined : json['accessRequirementReviewerIds'],
        'submitterId': json['submitterId'] == null ? undefined : json['submitterId'],
        'accessorChanges': json['accessorChanges'] == null ? undefined : (json['accessorChanges'].map(AccessorChangeFromJSON)),
        'state': json['state'] == null ? undefined : json['state'],
    };
}
export function SubmissionSearchResultToJSON(json) {
    return SubmissionSearchResultToJSONTyped(json, false);
}
export function SubmissionSearchResultToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'id': value['id'],
        'createdOn': value['createdOn'],
        'modifiedOn': value['modifiedOn'],
        'accessRequirementId': value['accessRequirementId'],
        'accessRequirementVersion': value['accessRequirementVersion'],
        'accessRequirementName': value['accessRequirementName'],
        'accessRequirementReviewerIds': value['accessRequirementReviewerIds'],
        'submitterId': value['submitterId'],
        'accessorChanges': value['accessorChanges'] == null ? undefined : (value['accessorChanges'].map(AccessorChangeToJSON)),
        'state': value['state'],
    };
}
//# sourceMappingURL=SubmissionSearchResult.js.map