/* 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.
 */
/**
 * @export
 */
export const ErrorResponseConcreteTypeEnum = {
    org_sagebionetworks_repo_model_ErrorResponse: 'org.sagebionetworks.repo.model.ErrorResponse'
};
/**
 * @export
 */
export const ErrorResponseErrorCodeEnum = {
    PASSWORD_RESET_VIA_EMAIL_REQUIRED: 'PASSWORD_RESET_VIA_EMAIL_REQUIRED',
    USER_CERTIFICATION_REQUIRED: 'USER_CERTIFICATION_REQUIRED',
    INVALID_TABLE_QUERY_FACET_COLUMN_REQUEST: 'INVALID_TABLE_QUERY_FACET_COLUMN_REQUEST',
    OAUTH_CLIENT_NOT_VERIFIED: 'OAUTH_CLIENT_NOT_VERIFIED',
    TWO_FA_REQUIRED: 'TWO_FA_REQUIRED',
    UNSUPPORTED_WEBHOOK_DOMAIN: 'UNSUPPORTED_WEBHOOK_DOMAIN',
    PROJECT_STORAGE_LIMIT_EXCEEDED: 'PROJECT_STORAGE_LIMIT_EXCEEDED',
    TWO_FA_ENABLED_REQUIRED: 'TWO_FA_ENABLED_REQUIRED'
};
/**
 * Check if a given object implements the ErrorResponse interface.
 */
export function instanceOfErrorResponse(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(ErrorResponseConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function ErrorResponseFromJSON(json) {
    return ErrorResponseFromJSONTyped(json, false);
}
export function ErrorResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'reason': json['reason'] == null ? undefined : json['reason'],
        'errorCode': json['errorCode'] == null ? undefined : json['errorCode'],
    };
}
export function ErrorResponseToJSON(json) {
    return ErrorResponseToJSONTyped(json, false);
}
export function ErrorResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'reason': value['reason'],
        'errorCode': value['errorCode'],
    };
}
//# sourceMappingURL=ErrorResponse.js.map