/* 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 DiscussionThreadBundleObjectTypeEnum = {
    ENTITY: 'ENTITY',
    ACCESS_REQUIREMENT: 'ACCESS_REQUIREMENT'
};
/**
 * Check if a given object implements the DiscussionThreadBundle interface.
 */
export function instanceOfDiscussionThreadBundle(value) {
    return true;
}
export function DiscussionThreadBundleFromJSON(json) {
    return DiscussionThreadBundleFromJSONTyped(json, false);
}
export function DiscussionThreadBundleFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'id': json['id'] == null ? undefined : json['id'],
        'forumId': json['forumId'] == null ? undefined : json['forumId'],
        'projectId': json['projectId'] == null ? undefined : json['projectId'],
        'objectId': json['objectId'] == null ? undefined : json['objectId'],
        'objectType': json['objectType'] == null ? undefined : json['objectType'],
        'title': json['title'] == null ? undefined : json['title'],
        'createdOn': json['createdOn'] == null ? undefined : json['createdOn'],
        'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
        'modifiedOn': json['modifiedOn'] == null ? undefined : json['modifiedOn'],
        'etag': json['etag'] == null ? undefined : json['etag'],
        'messageKey': json['messageKey'] == null ? undefined : json['messageKey'],
        'numberOfViews': json['numberOfViews'] == null ? undefined : json['numberOfViews'],
        'numberOfReplies': json['numberOfReplies'] == null ? undefined : json['numberOfReplies'],
        'lastActivity': json['lastActivity'] == null ? undefined : json['lastActivity'],
        'activeAuthors': json['activeAuthors'] == null ? undefined : json['activeAuthors'],
        'isEdited': json['isEdited'] == null ? undefined : json['isEdited'],
        'isDeleted': json['isDeleted'] == null ? undefined : json['isDeleted'],
        'isPinned': json['isPinned'] == null ? undefined : json['isPinned'],
    };
}
export function DiscussionThreadBundleToJSON(json) {
    return DiscussionThreadBundleToJSONTyped(json, false);
}
export function DiscussionThreadBundleToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'id': value['id'],
        'forumId': value['forumId'],
        'projectId': value['projectId'],
        'objectId': value['objectId'],
        'objectType': value['objectType'],
        'title': value['title'],
        'createdOn': value['createdOn'],
        'createdBy': value['createdBy'],
        'modifiedOn': value['modifiedOn'],
        'etag': value['etag'],
        'messageKey': value['messageKey'],
        'numberOfViews': value['numberOfViews'],
        'numberOfReplies': value['numberOfReplies'],
        'lastActivity': value['lastActivity'],
        'activeAuthors': value['activeAuthors'],
        'isEdited': value['isEdited'],
        'isDeleted': value['isDeleted'],
        'isPinned': value['isPinned'],
    };
}
//# sourceMappingURL=DiscussionThreadBundle.js.map