/* 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';
import { QuestionResponseFromJSON, QuestionResponseToJSON, } from './QuestionResponse';
/**
 * Check if a given object implements the ResponseCorrectness interface.
 */
export function instanceOfResponseCorrectness(value) {
    return true;
}
export function ResponseCorrectnessFromJSON(json) {
    return ResponseCorrectnessFromJSONTyped(json, false);
}
export function ResponseCorrectnessFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'question': json['question'] == null ? undefined : QuestionFromJSON(json['question']),
        'response': json['response'] == null ? undefined : QuestionResponseFromJSON(json['response']),
        'isCorrect': json['isCorrect'] == null ? undefined : json['isCorrect'],
    };
}
export function ResponseCorrectnessToJSON(json) {
    return ResponseCorrectnessToJSONTyped(json, false);
}
export function ResponseCorrectnessToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'question': QuestionToJSON(value['question']),
        'response': QuestionResponseToJSON(value['response']),
        'isCorrect': value['isCorrect'],
    };
}
//# sourceMappingURL=ResponseCorrectness.js.map