/* 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 { AdminResponseFromJSON, AdminResponseToJSON, } from './AdminResponse';
/**
 * @export
 */
export const AsyncMigrationResponseConcreteTypeEnum = {
    org_sagebionetworks_repo_model_migration_AsyncMigrationResponse: 'org.sagebionetworks.repo.model.migration.AsyncMigrationResponse'
};
/**
 * Check if a given object implements the AsyncMigrationResponse interface.
 */
export function instanceOfAsyncMigrationResponse(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(AsyncMigrationResponseConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function AsyncMigrationResponseFromJSON(json) {
    return AsyncMigrationResponseFromJSONTyped(json, false);
}
export function AsyncMigrationResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'adminResponse': json['adminResponse'] == null ? undefined : AdminResponseFromJSON(json['adminResponse']),
    };
}
export function AsyncMigrationResponseToJSON(json) {
    return AsyncMigrationResponseToJSONTyped(json, false);
}
export function AsyncMigrationResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'adminResponse': AdminResponseToJSON(value['adminResponse']),
    };
}
//# sourceMappingURL=AsyncMigrationResponse.js.map