/* 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 { ReferenceFromJSON, ReferenceToJSON, } from './Reference';
import { EnvironmentDescriptorFromJSON, EnvironmentDescriptorToJSON, } from './EnvironmentDescriptor';
/**
 * @export
 */
export const ExampleEntityConcreteTypeEnum = {
    org_sagebionetworks_repo_model_ExampleEntity: 'org.sagebionetworks.repo.model.ExampleEntity'
};
/**
 * @export
 */
export const ExampleEntitySomeEnumEnum = {
    CAT: 'CAT',
    DOG: 'DOG',
    FISH: 'FISH'
};
/**
 * Check if a given object implements the ExampleEntity interface.
 */
export function instanceOfExampleEntity(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(ExampleEntityConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function ExampleEntityFromJSON(json) {
    return ExampleEntityFromJSONTyped(json, false);
}
export function ExampleEntityFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'] == null ? undefined : json['name'],
        'description': json['description'] == null ? undefined : json['description'],
        'id': json['id'] == null ? undefined : json['id'],
        'etag': json['etag'] == null ? undefined : json['etag'],
        'createdOn': json['createdOn'] == null ? undefined : json['createdOn'],
        'modifiedOn': json['modifiedOn'] == null ? undefined : json['modifiedOn'],
        'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
        'modifiedBy': json['modifiedBy'] == null ? undefined : json['modifiedBy'],
        'parentId': json['parentId'] == null ? undefined : json['parentId'],
        'concreteType': json['concreteType'],
        'singleString': json['singleString'] == null ? undefined : json['singleString'],
        'stringList': json['stringList'] == null ? undefined : json['stringList'],
        'singleDate': json['singleDate'] == null ? undefined : json['singleDate'],
        'dateList': json['dateList'] == null ? undefined : json['dateList'],
        'singleDouble': json['singleDouble'] == null ? undefined : json['singleDouble'],
        'doubleList': json['doubleList'] == null ? undefined : json['doubleList'],
        'singleInteger': json['singleInteger'] == null ? undefined : json['singleInteger'],
        'integerList': json['integerList'] == null ? undefined : json['integerList'],
        'concept': json['concept'] == null ? undefined : json['concept'],
        'someEnum': json['someEnum'] == null ? undefined : json['someEnum'],
        'references': json['references'] == null ? undefined : (new Set(json['references'].map(ReferenceFromJSON))),
        'environmentDescriptors': json['environmentDescriptors'] == null ? undefined : (new Set(json['environmentDescriptors'].map(EnvironmentDescriptorFromJSON))),
    };
}
export function ExampleEntityToJSON(json) {
    return ExampleEntityToJSONTyped(json, false);
}
export function ExampleEntityToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'description': value['description'],
        'id': value['id'],
        'etag': value['etag'],
        'createdOn': value['createdOn'],
        'modifiedOn': value['modifiedOn'],
        'createdBy': value['createdBy'],
        'modifiedBy': value['modifiedBy'],
        'parentId': value['parentId'],
        'concreteType': value['concreteType'],
        'singleString': value['singleString'],
        'stringList': value['stringList'],
        'singleDate': value['singleDate'],
        'dateList': value['dateList'],
        'singleDouble': value['singleDouble'],
        'doubleList': value['doubleList'],
        'singleInteger': value['singleInteger'],
        'integerList': value['integerList'],
        'concept': value['concept'],
        'someEnum': value['someEnum'],
        'references': value['references'] == null ? undefined : (Array.from(value['references']).map(ReferenceToJSON)),
        'environmentDescriptors': value['environmentDescriptors'] == null ? undefined : (Array.from(value['environmentDescriptors']).map(EnvironmentDescriptorToJSON)),
    };
}
//# sourceMappingURL=ExampleEntity.js.map