/* 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 { DslQueryFromJSON, DslQueryToJSON, } from './DslQuery';
/**
 * Check if a given object implements the HighlightField interface.
 */
export function instanceOfHighlightField(value) {
    return true;
}
export function HighlightFieldFromJSON(json) {
    return HighlightFieldFromJSONTyped(json, false);
}
export function HighlightFieldFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'fragment_size': json['fragment_size'] == null ? undefined : json['fragment_size'],
        'fragment_offset': json['fragment_offset'] == null ? undefined : json['fragment_offset'],
        'no_match_size': json['no_match_size'] == null ? undefined : json['no_match_size'],
        'order': json['order'] == null ? undefined : json['order'],
        'fragmenter': json['fragmenter'] == null ? undefined : json['fragmenter'],
        'boundary_scanner': json['boundary_scanner'] == null ? undefined : json['boundary_scanner'],
        'boundary_scanner_locale': json['boundary_scanner_locale'] == null ? undefined : json['boundary_scanner_locale'],
        'boundary_chars': json['boundary_chars'] == null ? undefined : json['boundary_chars'],
        'boundary_max_scan': json['boundary_max_scan'] == null ? undefined : json['boundary_max_scan'],
        'max_fragment_length': json['max_fragment_length'] == null ? undefined : json['max_fragment_length'],
        'max_analyzer_offset': json['max_analyzer_offset'] == null ? undefined : json['max_analyzer_offset'],
        'phrase_limit': json['phrase_limit'] == null ? undefined : json['phrase_limit'],
        'require_field_match': json['require_field_match'] == null ? undefined : json['require_field_match'],
        'highlight_filter': json['highlight_filter'] == null ? undefined : json['highlight_filter'],
        'force_source': json['force_source'] == null ? undefined : json['force_source'],
        'tags_schema': json['tags_schema'] == null ? undefined : json['tags_schema'],
        'type': json['type'] == null ? undefined : json['type'],
        'number_of_fragments': json['number_of_fragments'] == null ? undefined : json['number_of_fragments'],
        'pre_tags': json['pre_tags'] == null ? undefined : json['pre_tags'],
        'post_tags': json['post_tags'] == null ? undefined : json['post_tags'],
        'matched_fields': json['matched_fields'] == null ? undefined : json['matched_fields'],
        'highlight_query': json['highlight_query'] == null ? undefined : DslQueryFromJSON(json['highlight_query']),
    };
}
export function HighlightFieldToJSON(json) {
    return HighlightFieldToJSONTyped(json, false);
}
export function HighlightFieldToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'fragment_size': value['fragment_size'],
        'fragment_offset': value['fragment_offset'],
        'no_match_size': value['no_match_size'],
        'order': value['order'],
        'fragmenter': value['fragmenter'],
        'boundary_scanner': value['boundary_scanner'],
        'boundary_scanner_locale': value['boundary_scanner_locale'],
        'boundary_chars': value['boundary_chars'],
        'boundary_max_scan': value['boundary_max_scan'],
        'max_fragment_length': value['max_fragment_length'],
        'max_analyzer_offset': value['max_analyzer_offset'],
        'phrase_limit': value['phrase_limit'],
        'require_field_match': value['require_field_match'],
        'highlight_filter': value['highlight_filter'],
        'force_source': value['force_source'],
        'tags_schema': value['tags_schema'],
        'type': value['type'],
        'number_of_fragments': value['number_of_fragments'],
        'pre_tags': value['pre_tags'],
        'post_tags': value['post_tags'],
        'matched_fields': value['matched_fields'],
        'highlight_query': DslQueryToJSON(value['highlight_query']),
    };
}
//# sourceMappingURL=HighlightField.js.map