/* 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 { DoiNameIdentifierFromJSON, DoiNameIdentifierToJSON, } from './DoiNameIdentifier';
/**
 * Check if a given object implements the DoiCreator interface.
 */
export function instanceOfDoiCreator(value) {
    return true;
}
export function DoiCreatorFromJSON(json) {
    return DoiCreatorFromJSONTyped(json, false);
}
export function DoiCreatorFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'creatorName': json['creatorName'] == null ? undefined : json['creatorName'],
        'nameIdentifiers': json['nameIdentifiers'] == null ? undefined : (json['nameIdentifiers'].map(DoiNameIdentifierFromJSON)),
    };
}
export function DoiCreatorToJSON(json) {
    return DoiCreatorToJSONTyped(json, false);
}
export function DoiCreatorToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'creatorName': value['creatorName'],
        'nameIdentifiers': value['nameIdentifiers'] == null ? undefined : (value['nameIdentifiers'].map(DoiNameIdentifierToJSON)),
    };
}
//# sourceMappingURL=DoiCreator.js.map