/* 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';
/**
 * @export
 */
export const CreateSchemaRequestConcreteTypeEnum = {
    org_sagebionetworks_repo_model_schema_CreateSchemaRequest: 'org.sagebionetworks.repo.model.schema.CreateSchemaRequest'
};
/**
 * Check if a given object implements the CreateSchemaRequest interface.
 */
export function instanceOfCreateSchemaRequest(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(CreateSchemaRequestConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function CreateSchemaRequestFromJSON(json) {
    return CreateSchemaRequestFromJSONTyped(json, false);
}
export function CreateSchemaRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'schema': json['schema'] == null ? undefined : JsonSchemaFromJSON(json['schema']),
        'dryRun': json['dryRun'] == null ? undefined : json['dryRun'],
    };
}
export function CreateSchemaRequestToJSON(json) {
    return CreateSchemaRequestToJSONTyped(json, false);
}
export function CreateSchemaRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'schema': JsonSchemaToJSON(value['schema']),
        'dryRun': value['dryRun'],
    };
}
//# sourceMappingURL=CreateSchemaRequest.js.map