/* 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 { mapValues } from '../runtime';
import { AnnotationsValueFromJSON, AnnotationsValueToJSON, } from './AnnotationsValue';
/**
 * Check if a given object implements the V2Annotations interface.
 */
export function instanceOfV2Annotations(value) {
    return true;
}
export function V2AnnotationsFromJSON(json) {
    return V2AnnotationsFromJSONTyped(json, false);
}
export function V2AnnotationsFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'id': json['id'] == null ? undefined : json['id'],
        'etag': json['etag'] == null ? undefined : json['etag'],
        'annotations': json['annotations'] == null ? undefined : (mapValues(json['annotations'], AnnotationsValueFromJSON)),
    };
}
export function V2AnnotationsToJSON(json) {
    return V2AnnotationsToJSONTyped(json, false);
}
export function V2AnnotationsToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'id': value['id'],
        'etag': value['etag'],
        'annotations': value['annotations'] == null ? undefined : (mapValues(value['annotations'], AnnotationsValueToJSON)),
    };
}
//# sourceMappingURL=V2Annotations.js.map