/* 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 { StringAnnotationFromJSON, StringAnnotationToJSON, } from './StringAnnotation';
import { DoubleAnnotationFromJSON, DoubleAnnotationToJSON, } from './DoubleAnnotation';
import { LongAnnotationFromJSON, LongAnnotationToJSON, } from './LongAnnotation';
/**
 * Check if a given object implements the AnnotationAnnotations interface.
 */
export function instanceOfAnnotationAnnotations(value) {
    return true;
}
export function AnnotationAnnotationsFromJSON(json) {
    return AnnotationAnnotationsFromJSONTyped(json, false);
}
export function AnnotationAnnotationsFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'objectId': json['objectId'] == null ? undefined : json['objectId'],
        'scopeId': json['scopeId'] == null ? undefined : json['scopeId'],
        'version': json['version'] == null ? undefined : json['version'],
        'stringAnnos': json['stringAnnos'] == null ? undefined : (json['stringAnnos'].map(StringAnnotationFromJSON)),
        'longAnnos': json['longAnnos'] == null ? undefined : (json['longAnnos'].map(LongAnnotationFromJSON)),
        'doubleAnnos': json['doubleAnnos'] == null ? undefined : (json['doubleAnnos'].map(DoubleAnnotationFromJSON)),
    };
}
export function AnnotationAnnotationsToJSON(json) {
    return AnnotationAnnotationsToJSONTyped(json, false);
}
export function AnnotationAnnotationsToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'objectId': value['objectId'],
        'scopeId': value['scopeId'],
        'version': value['version'],
        'stringAnnos': value['stringAnnos'] == null ? undefined : (value['stringAnnos'].map(StringAnnotationToJSON)),
        'longAnnos': value['longAnnos'] == null ? undefined : (value['longAnnos'].map(LongAnnotationToJSON)),
        'doubleAnnos': value['doubleAnnos'] == null ? undefined : (value['doubleAnnos'].map(DoubleAnnotationToJSON)),
    };
}
//# sourceMappingURL=AnnotationAnnotations.js.map