/* 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.
 */
/**
 * Check if a given object implements the MessageToUser interface.
 */
export function instanceOfMessageToUser(value) {
    return true;
}
export function MessageToUserFromJSON(json) {
    return MessageToUserFromJSONTyped(json, false);
}
export function MessageToUserFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'id': json['id'] == null ? undefined : json['id'],
        'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
        'fileHandleId': json['fileHandleId'] == null ? undefined : json['fileHandleId'],
        'createdOn': json['createdOn'] == null ? undefined : json['createdOn'],
        'recipients': json['recipients'] == null ? undefined : new Set(json['recipients']),
        'subject': json['subject'] == null ? undefined : json['subject'],
        'inReplyTo': json['inReplyTo'] == null ? undefined : json['inReplyTo'],
        'inReplyToRoot': json['inReplyToRoot'] == null ? undefined : json['inReplyToRoot'],
        'notificationUnsubscribeEndpoint': json['notificationUnsubscribeEndpoint'] == null ? undefined : json['notificationUnsubscribeEndpoint'],
        'userProfileSettingEndpoint': json['userProfileSettingEndpoint'] == null ? undefined : json['userProfileSettingEndpoint'],
        'withUnsubscribeLink': json['withUnsubscribeLink'] == null ? undefined : json['withUnsubscribeLink'],
        'withProfileSettingLink': json['withProfileSettingLink'] == null ? undefined : json['withProfileSettingLink'],
        'isNotificationMessage': json['isNotificationMessage'] == null ? undefined : json['isNotificationMessage'],
        'to': json['to'] == null ? undefined : json['to'],
        'cc': json['cc'] == null ? undefined : json['cc'],
        'bcc': json['bcc'] == null ? undefined : json['bcc'],
    };
}
export function MessageToUserToJSON(json) {
    return MessageToUserToJSONTyped(json, false);
}
export function MessageToUserToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'id': value['id'],
        'createdBy': value['createdBy'],
        'fileHandleId': value['fileHandleId'],
        'createdOn': value['createdOn'],
        'recipients': value['recipients'] == null ? undefined : Array.from(value['recipients']),
        'subject': value['subject'],
        'inReplyTo': value['inReplyTo'],
        'inReplyToRoot': value['inReplyToRoot'],
        'notificationUnsubscribeEndpoint': value['notificationUnsubscribeEndpoint'],
        'userProfileSettingEndpoint': value['userProfileSettingEndpoint'],
        'withUnsubscribeLink': value['withUnsubscribeLink'],
        'withProfileSettingLink': value['withProfileSettingLink'],
        'isNotificationMessage': value['isNotificationMessage'],
        'to': value['to'],
        'cc': value['cc'],
        'bcc': value['bcc'],
    };
}
//# sourceMappingURL=MessageToUser.js.map