/* 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 { QuestionFromJSON, QuestionToJSON, } from './Question';
/**
 * Check if a given object implements the QuestionVariety interface.
 */
export function instanceOfQuestionVariety(value) {
    return true;
}
export function QuestionVarietyFromJSON(json) {
    return QuestionVarietyFromJSONTyped(json, false);
}
export function QuestionVarietyFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'questionOptions': json['questionOptions'] == null ? undefined : (json['questionOptions'].map(QuestionFromJSON)),
    };
}
export function QuestionVarietyToJSON(json) {
    return QuestionVarietyToJSONTyped(json, false);
}
export function QuestionVarietyToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'questionOptions': value['questionOptions'] == null ? undefined : (value['questionOptions'].map(QuestionToJSON)),
    };
}
//# sourceMappingURL=QuestionVariety.js.map