/* 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 { MessageRecipientSetFromJSONTyped, MessageRecipientSetToJSON, } from './MessageRecipientSet';
import { MessageToUserFromJSONTyped, MessageToUserToJSON, } from './MessageToUser';
export function MessageRecipientSetInterfaceFromJSON(json) {
    return MessageRecipientSetInterfaceFromJSONTyped(json, false);
}
export function MessageRecipientSetInterfaceFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    switch (json['concreteType']) {
        case 'org.sagebionetworks.repo.model.message.MessageRecipientSet':
            return Object.assign({}, MessageRecipientSetFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.message.MessageRecipientSet' });
        case 'org.sagebionetworks.repo.model.message.MessageToUser':
            return Object.assign({}, MessageToUserFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.message.MessageToUser' });
        default:
            return json;
    }
}
export function MessageRecipientSetInterfaceToJSON(json) {
    return MessageRecipientSetInterfaceToJSONTyped(json, false);
}
export function MessageRecipientSetInterfaceToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    switch (value['concreteType']) {
        case 'org.sagebionetworks.repo.model.message.MessageRecipientSet':
            return Object.assign({}, MessageRecipientSetToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.message.MessageRecipientSet' });
        case 'org.sagebionetworks.repo.model.message.MessageToUser':
            return Object.assign({}, MessageToUserToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.message.MessageToUser' });
        default:
            return value;
    }
}
//# sourceMappingURL=MessageRecipientSetInterface.js.map