/* 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 { MatchBoolPrefixFieldOptionsFromJSONTyped, MatchBoolPrefixFieldOptionsToJSON, } from './MatchBoolPrefixFieldOptions';
import { MatchFieldOptionsFromJSONTyped, MatchFieldOptionsToJSON, } from './MatchFieldOptions';
import { MultiMatchQueryFromJSONTyped, MultiMatchQueryToJSON, } from './MultiMatchQuery';
export function FuzzyMatchOptionsFromJSON(json) {
    return FuzzyMatchOptionsFromJSONTyped(json, false);
}
export function FuzzyMatchOptionsFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    switch (json['concreteType']) {
        case 'org.sagebionetworks.repo.model.search.dsl.MatchBoolPrefixFieldOptions':
            return Object.assign({}, MatchBoolPrefixFieldOptionsFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.search.dsl.MatchBoolPrefixFieldOptions' });
        case 'org.sagebionetworks.repo.model.search.dsl.MatchFieldOptions':
            return Object.assign({}, MatchFieldOptionsFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.search.dsl.MatchFieldOptions' });
        case 'org.sagebionetworks.repo.model.search.dsl.MultiMatchQuery':
            return Object.assign({}, MultiMatchQueryFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.search.dsl.MultiMatchQuery' });
        default:
            return json;
    }
}
export function FuzzyMatchOptionsToJSON(json) {
    return FuzzyMatchOptionsToJSONTyped(json, false);
}
export function FuzzyMatchOptionsToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    switch (value['concreteType']) {
        case 'org.sagebionetworks.repo.model.search.dsl.MatchBoolPrefixFieldOptions':
            return Object.assign({}, MatchBoolPrefixFieldOptionsToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.search.dsl.MatchBoolPrefixFieldOptions' });
        case 'org.sagebionetworks.repo.model.search.dsl.MatchFieldOptions':
            return Object.assign({}, MatchFieldOptionsToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.search.dsl.MatchFieldOptions' });
        case 'org.sagebionetworks.repo.model.search.dsl.MultiMatchQuery':
            return Object.assign({}, MultiMatchQueryToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.search.dsl.MultiMatchQuery' });
        default:
            return value;
    }
}
//# sourceMappingURL=FuzzyMatchOptions.js.map