/* 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 { EntityGroupRecordFromJSON, EntityGroupRecordToJSON, } from './EntityGroupRecord';
/**
 * Check if a given object implements the EntityGroup interface.
 */
export function instanceOfEntityGroup(value) {
    return true;
}
export function EntityGroupFromJSON(json) {
    return EntityGroupFromJSONTyped(json, false);
}
export function EntityGroupFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'] == null ? undefined : json['name'],
        'description': json['description'] == null ? undefined : json['description'],
        'records': json['records'] == null ? undefined : (json['records'].map(EntityGroupRecordFromJSON)),
    };
}
export function EntityGroupToJSON(json) {
    return EntityGroupToJSONTyped(json, false);
}
export function EntityGroupToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'description': value['description'],
        'records': value['records'] == null ? undefined : (value['records'].map(EntityGroupRecordToJSON)),
    };
}
//# sourceMappingURL=EntityGroup.js.map