/* 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 { MatchFromJSON, MatchToJSON, } from './Match';
/**
 * Check if a given object implements the DiscussionSearchResponse interface.
 */
export function instanceOfDiscussionSearchResponse(value) {
    return true;
}
export function DiscussionSearchResponseFromJSON(json) {
    return DiscussionSearchResponseFromJSONTyped(json, false);
}
export function DiscussionSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'matches': json['matches'] == null ? undefined : (json['matches'].map(MatchFromJSON)),
        'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
    };
}
export function DiscussionSearchResponseToJSON(json) {
    return DiscussionSearchResponseToJSONTyped(json, false);
}
export function DiscussionSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'matches': value['matches'] == null ? undefined : (value['matches'].map(MatchToJSON)),
        'nextPageToken': value['nextPageToken'],
    };
}
//# sourceMappingURL=DiscussionSearchResponse.js.map