/* 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 { V2DoiFromJSON, V2DoiToJSON, } from './V2Doi';
/**
 * @export
 */
export const DoiRequestConcreteTypeEnum = {
    org_sagebionetworks_repo_model_doi_v2_DoiRequest: 'org.sagebionetworks.repo.model.doi.v2.DoiRequest'
};
/**
 * Check if a given object implements the DoiRequest interface.
 */
export function instanceOfDoiRequest(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(DoiRequestConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function DoiRequestFromJSON(json) {
    return DoiRequestFromJSONTyped(json, false);
}
export function DoiRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'doi': json['doi'] == null ? undefined : V2DoiFromJSON(json['doi']),
    };
}
export function DoiRequestToJSON(json) {
    return DoiRequestToJSONTyped(json, false);
}
export function DoiRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'doi': V2DoiToJSON(value['doi']),
    };
}
//# sourceMappingURL=DoiRequest.js.map