/* 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 { QuestionResponseFromJSON, QuestionResponseToJSON, } from './QuestionResponse';
/**
 * Check if a given object implements the QuizResponse interface.
 */
export function instanceOfQuizResponse(value) {
    return true;
}
export function QuizResponseFromJSON(json) {
    return QuizResponseFromJSONTyped(json, false);
}
export function QuizResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'id': json['id'] == null ? undefined : json['id'],
        'quizId': json['quizId'] == null ? undefined : json['quizId'],
        'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
        'createdOn': json['createdOn'] == null ? undefined : json['createdOn'],
        'questionResponses': json['questionResponses'] == null ? undefined : (json['questionResponses'].map(QuestionResponseFromJSON)),
    };
}
export function QuizResponseToJSON(json) {
    return QuizResponseToJSONTyped(json, false);
}
export function QuizResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'id': value['id'],
        'quizId': value['quizId'],
        'createdBy': value['createdBy'],
        'createdOn': value['createdOn'],
        'questionResponses': value['questionResponses'] == null ? undefined : (value['questionResponses'].map(QuestionResponseToJSON)),
    };
}
//# sourceMappingURL=QuizResponse.js.map