/* 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 { WikiPageKeyFromJSON, WikiPageKeyToJSON, } from './WikiPageKey';
/**
 * @export
 */
export const TextFieldQuestionConcreteTypeEnum = {
    org_sagebionetworks_repo_model_quiz_TextFieldQuestion: 'org.sagebionetworks.repo.model.quiz.TextFieldQuestion'
};
/**
 * Check if a given object implements the TextFieldQuestion interface.
 */
export function instanceOfTextFieldQuestion(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(TextFieldQuestionConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function TextFieldQuestionFromJSON(json) {
    return TextFieldQuestionFromJSONTyped(json, false);
}
export function TextFieldQuestionFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'questionIndex': json['questionIndex'] == null ? undefined : json['questionIndex'],
        'prompt': json['prompt'] == null ? undefined : json['prompt'],
        'reference': json['reference'] == null ? undefined : WikiPageKeyFromJSON(json['reference']),
        'docLink': json['docLink'] == null ? undefined : json['docLink'],
        'helpText': json['helpText'] == null ? undefined : json['helpText'],
        'concreteType': json['concreteType'],
        'answer': json['answer'] == null ? undefined : json['answer'],
    };
}
export function TextFieldQuestionToJSON(json) {
    return TextFieldQuestionToJSONTyped(json, false);
}
export function TextFieldQuestionToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'questionIndex': value['questionIndex'],
        'prompt': value['prompt'],
        'reference': WikiPageKeyToJSON(value['reference']),
        'docLink': value['docLink'],
        'helpText': value['helpText'],
        'concreteType': value['concreteType'],
        'answer': value['answer'],
    };
}
//# sourceMappingURL=TextFieldQuestion.js.map