/* 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.
 */
/**
 * @export
 */
export const MultichoiceResponseConcreteTypeEnum = {
    org_sagebionetworks_repo_model_quiz_MultichoiceResponse: 'org.sagebionetworks.repo.model.quiz.MultichoiceResponse'
};
/**
 * Check if a given object implements the MultichoiceResponse interface.
 */
export function instanceOfMultichoiceResponse(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(MultichoiceResponseConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function MultichoiceResponseFromJSON(json) {
    return MultichoiceResponseFromJSONTyped(json, false);
}
export function MultichoiceResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'questionIndex': json['questionIndex'] == null ? undefined : json['questionIndex'],
        'concreteType': json['concreteType'],
        'answerIndex': json['answerIndex'] == null ? undefined : new Set(json['answerIndex']),
    };
}
export function MultichoiceResponseToJSON(json) {
    return MultichoiceResponseToJSONTyped(json, false);
}
export function MultichoiceResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'questionIndex': value['questionIndex'],
        'concreteType': value['concreteType'],
        'answerIndex': value['answerIndex'] == null ? undefined : Array.from(value['answerIndex']),
    };
}
//# sourceMappingURL=MultichoiceResponse.js.map