/* 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.
 */
/**
 * @export
 */
export const DiscussionThreadObjectTypeEnum = {
    ENTITY: 'ENTITY',
    ACCESS_REQUIREMENT: 'ACCESS_REQUIREMENT'
};
/**
 * Check if a given object implements the DiscussionThread interface.
 */
export function instanceOfDiscussionThread(value) {
    return true;
}
export function DiscussionThreadFromJSON(json) {
    return DiscussionThreadFromJSONTyped(json, false);
}
export function DiscussionThreadFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'id': json['id'] == null ? undefined : json['id'],
        'forumId': json['forumId'] == null ? undefined : json['forumId'],
        'objectId': json['objectId'] == null ? undefined : json['objectId'],
        'objectType': json['objectType'] == null ? undefined : json['objectType'],
    };
}
export function DiscussionThreadToJSON(json) {
    return DiscussionThreadToJSONTyped(json, false);
}
export function DiscussionThreadToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'id': value['id'],
        'forumId': value['forumId'],
        'objectId': value['objectId'],
        'objectType': value['objectType'],
    };
}
//# sourceMappingURL=DiscussionThread.js.map