/* 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 { SuggestionFromJSON, SuggestionToJSON, } from './Suggestion';
/**
 * Check if a given object implements the SuggestionList interface.
 */
export function instanceOfSuggestionList(value) {
    return true;
}
export function SuggestionListFromJSON(json) {
    return SuggestionListFromJSONTyped(json, false);
}
export function SuggestionListFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'key': json['key'] == null ? undefined : json['key'],
        'values': json['values'] == null ? undefined : (new Set(json['values'].map(SuggestionFromJSON))),
    };
}
export function SuggestionListToJSON(json) {
    return SuggestionListToJSONTyped(json, false);
}
export function SuggestionListToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'key': value['key'],
        'values': value['values'] == null ? undefined : (Array.from(value['values']).map(SuggestionToJSON)),
    };
}
//# sourceMappingURL=SuggestionList.js.map