/* 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.
 */
/**
 * Check if a given object implements the ValidationException interface.
 */
export function instanceOfValidationException(value) {
    return true;
}
export function ValidationExceptionFromJSON(json) {
    return ValidationExceptionFromJSONTyped(json, false);
}
export function ValidationExceptionFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'keyword': json['keyword'] == null ? undefined : json['keyword'],
        'pointerToViolation': json['pointerToViolation'] == null ? undefined : json['pointerToViolation'],
        'message': json['message'] == null ? undefined : json['message'],
        'schemaLocation': json['schemaLocation'] == null ? undefined : json['schemaLocation'],
        'causingExceptions': json['causingExceptions'] == null ? undefined : (json['causingExceptions'].map(ValidationExceptionFromJSON)),
    };
}
export function ValidationExceptionToJSON(json) {
    return ValidationExceptionToJSONTyped(json, false);
}
export function ValidationExceptionToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'keyword': value['keyword'],
        'pointerToViolation': value['pointerToViolation'],
        'message': value['message'],
        'schemaLocation': value['schemaLocation'],
        'causingExceptions': value['causingExceptions'] == null ? undefined : (value['causingExceptions'].map(ValidationExceptionToJSON)),
    };
}
//# sourceMappingURL=ValidationException.js.map