/* 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 { AccessApprovalFromJSON, AccessApprovalToJSON, } from './AccessApproval';
/**
 * @export
 */
export const UserSubmissionSearchResultStateEnum = {
    SUBMITTED: 'SUBMITTED',
    APPROVED: 'APPROVED',
    REJECTED: 'REJECTED',
    CANCELLED: 'CANCELLED'
};
/**
 * Check if a given object implements the UserSubmissionSearchResult interface.
 */
export function instanceOfUserSubmissionSearchResult(value) {
    return true;
}
export function UserSubmissionSearchResultFromJSON(json) {
    return UserSubmissionSearchResultFromJSONTyped(json, false);
}
export function UserSubmissionSearchResultFromJSONTyped(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'],
        'submitterId': json['submitterId'] == null ? undefined : json['submitterId'],
        'state': json['state'] == null ? undefined : json['state'],
        'userAccessApproval': json['userAccessApproval'] == null ? undefined : AccessApprovalFromJSON(json['userAccessApproval']),
    };
}
export function UserSubmissionSearchResultToJSON(json) {
    return UserSubmissionSearchResultToJSONTyped(json, false);
}
export function UserSubmissionSearchResultToJSONTyped(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'],
        'submitterId': value['submitterId'],
        'state': value['state'],
        'userAccessApproval': AccessApprovalToJSON(value['userAccessApproval']),
    };
}
//# sourceMappingURL=UserSubmissionSearchResult.js.map