/* 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 DrsErrorResponseConcreteTypeEnum = {
    org_sagebionetworks_repo_model_drs_DrsErrorResponse: 'org.sagebionetworks.repo.model.drs.DrsErrorResponse'
};
/**
 * Check if a given object implements the DrsErrorResponse interface.
 */
export function instanceOfDrsErrorResponse(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(DrsErrorResponseConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function DrsErrorResponseFromJSON(json) {
    return DrsErrorResponseFromJSONTyped(json, false);
}
export function DrsErrorResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'msg': json['msg'] == null ? undefined : json['msg'],
        'status_code': json['status_code'] == null ? undefined : json['status_code'],
    };
}
export function DrsErrorResponseToJSON(json) {
    return DrsErrorResponseToJSONTyped(json, false);
}
export function DrsErrorResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'msg': value['msg'],
        'status_code': value['status_code'],
    };
}
//# sourceMappingURL=DrsErrorResponse.js.map