/* 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 { JsonSchemaFromJSON, JsonSchemaToJSON, } from './JsonSchema';
import { JsonSchemaVersionInfoFromJSON, JsonSchemaVersionInfoToJSON, } from './JsonSchemaVersionInfo';
/**
 * @export
 */
export const CreateSchemaResponseConcreteTypeEnum = {
    org_sagebionetworks_repo_model_schema_CreateSchemaResponse: 'org.sagebionetworks.repo.model.schema.CreateSchemaResponse'
};
/**
 * Check if a given object implements the CreateSchemaResponse interface.
 */
export function instanceOfCreateSchemaResponse(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(CreateSchemaResponseConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function CreateSchemaResponseFromJSON(json) {
    return CreateSchemaResponseFromJSONTyped(json, false);
}
export function CreateSchemaResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'newVersionInfo': json['newVersionInfo'] == null ? undefined : JsonSchemaVersionInfoFromJSON(json['newVersionInfo']),
        'validationSchema': json['validationSchema'] == null ? undefined : JsonSchemaFromJSON(json['validationSchema']),
    };
}
export function CreateSchemaResponseToJSON(json) {
    return CreateSchemaResponseToJSONTyped(json, false);
}
export function CreateSchemaResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'newVersionInfo': JsonSchemaVersionInfoToJSON(value['newVersionInfo']),
        'validationSchema': JsonSchemaToJSON(value['validationSchema']),
    };
}
//# sourceMappingURL=CreateSchemaResponse.js.map