/* 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 { ResponseCorrectnessFromJSON, ResponseCorrectnessToJSON, } from './ResponseCorrectness';
/**
 * Check if a given object implements the PassingRecord interface.
 */
export function instanceOfPassingRecord(value) {
    return true;
}
export function PassingRecordFromJSON(json) {
    return PassingRecordFromJSONTyped(json, false);
}
export function PassingRecordFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'userId': json['userId'] == null ? undefined : json['userId'],
        'quizId': json['quizId'] == null ? undefined : json['quizId'],
        'responseId': json['responseId'] == null ? undefined : json['responseId'],
        'score': json['score'] == null ? undefined : json['score'],
        'passed': json['passed'] == null ? undefined : json['passed'],
        'passedOn': json['passedOn'] == null ? undefined : json['passedOn'],
        'createdOn': json['createdOn'] == null ? undefined : json['createdOn'],
        'revokedOn': json['revokedOn'] == null ? undefined : json['revokedOn'],
        'revoked': json['revoked'] == null ? undefined : json['revoked'],
        'certified': json['certified'] == null ? undefined : json['certified'],
        'corrections': json['corrections'] == null ? undefined : (json['corrections'].map(ResponseCorrectnessFromJSON)),
    };
}
export function PassingRecordToJSON(json) {
    return PassingRecordToJSONTyped(json, false);
}
export function PassingRecordToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'userId': value['userId'],
        'quizId': value['quizId'],
        'responseId': value['responseId'],
        'score': value['score'],
        'passed': value['passed'],
        'passedOn': value['passedOn'],
        'createdOn': value['createdOn'],
        'revokedOn': value['revokedOn'],
        'revoked': value['revoked'],
        'certified': value['certified'],
        'corrections': value['corrections'] == null ? undefined : (value['corrections'].map(ResponseCorrectnessToJSON)),
    };
}
//# sourceMappingURL=PassingRecord.js.map