/* 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 PrincipalAliasTypeEnum = {
    USER_NAME: 'USER_NAME',
    TEAM_NAME: 'TEAM_NAME',
    USER_EMAIL: 'USER_EMAIL',
    USER_OPEN_ID: 'USER_OPEN_ID',
    USER_ORCID: 'USER_ORCID'
};
/**
 * Check if a given object implements the PrincipalAlias interface.
 */
export function instanceOfPrincipalAlias(value) {
    return true;
}
export function PrincipalAliasFromJSON(json) {
    return PrincipalAliasFromJSONTyped(json, false);
}
export function PrincipalAliasFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'aliasId': json['aliasId'] == null ? undefined : json['aliasId'],
        'etag': json['etag'] == null ? undefined : json['etag'],
        'principalId': json['principalId'] == null ? undefined : json['principalId'],
        'alias': json['alias'] == null ? undefined : json['alias'],
        'type': json['type'] == null ? undefined : json['type'],
    };
}
export function PrincipalAliasToJSON(json) {
    return PrincipalAliasToJSONTyped(json, false);
}
export function PrincipalAliasToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'aliasId': value['aliasId'],
        'etag': value['etag'],
        'principalId': value['principalId'],
        'alias': value['alias'],
        'type': value['type'],
    };
}
//# sourceMappingURL=PrincipalAlias.js.map