/* 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 { ValidationExceptionFromJSON, ValidationExceptionToJSON, } from './ValidationException';
/**
 * @export
 */
export const SchemaValidationResultsObjectTypeEnum = {
    entity: 'entity'
};
/**
 * Check if a given object implements the SchemaValidationResults interface.
 */
export function instanceOfSchemaValidationResults(value) {
    return true;
}
export function SchemaValidationResultsFromJSON(json) {
    return SchemaValidationResultsFromJSONTyped(json, false);
}
export function SchemaValidationResultsFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'objectId': json['objectId'] == null ? undefined : json['objectId'],
        'objectType': json['objectType'] == null ? undefined : json['objectType'],
        'objectEtag': json['objectEtag'] == null ? undefined : json['objectEtag'],
        'schema$id': json['schema$id'] == null ? undefined : json['schema$id'],
        'isValid': json['isValid'] == null ? undefined : json['isValid'],
        'validatedOn': json['validatedOn'] == null ? undefined : json['validatedOn'],
        'validationErrorMessage': json['validationErrorMessage'] == null ? undefined : json['validationErrorMessage'],
        'allValidationMessages': json['allValidationMessages'] == null ? undefined : json['allValidationMessages'],
        'validationException': json['validationException'] == null ? undefined : ValidationExceptionFromJSON(json['validationException']),
    };
}
export function SchemaValidationResultsToJSON(json) {
    return SchemaValidationResultsToJSONTyped(json, false);
}
export function SchemaValidationResultsToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'objectId': value['objectId'],
        'objectType': value['objectType'],
        'objectEtag': value['objectEtag'],
        'schema$id': value['schema$id'],
        'isValid': value['isValid'],
        'validatedOn': value['validatedOn'],
        'validationErrorMessage': value['validationErrorMessage'],
        'allValidationMessages': value['allValidationMessages'],
        'validationException': ValidationExceptionToJSON(value['validationException']),
    };
}
//# sourceMappingURL=SchemaValidationResults.js.map