/* 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 TextFieldResponseConcreteTypeEnum = {
    org_sagebionetworks_repo_model_quiz_TextFieldResponse: 'org.sagebionetworks.repo.model.quiz.TextFieldResponse'
};
/**
 * Check if a given object implements the TextFieldResponse interface.
 */
export function instanceOfTextFieldResponse(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(TextFieldResponseConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function TextFieldResponseFromJSON(json) {
    return TextFieldResponseFromJSONTyped(json, false);
}
export function TextFieldResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'questionIndex': json['questionIndex'] == null ? undefined : json['questionIndex'],
        'concreteType': json['concreteType'],
        'response': json['response'] == null ? undefined : json['response'],
    };
}
export function TextFieldResponseToJSON(json) {
    return TextFieldResponseToJSONTyped(json, false);
}
export function TextFieldResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'questionIndex': value['questionIndex'],
        'concreteType': value['concreteType'],
        'response': value['response'],
    };
}
//# sourceMappingURL=TextFieldResponse.js.map