/* 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 PrincipalInvestigator interface.
 */
export function instanceOfPrincipalInvestigator(value) {
    return true;
}
export function PrincipalInvestigatorFromJSON(json) {
    return PrincipalInvestigatorFromJSONTyped(json, false);
}
export function PrincipalInvestigatorFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'userId': json['userId'] == null ? undefined : json['userId'],
        'name': json['name'] == null ? undefined : json['name'],
        'title': json['title'] == null ? undefined : json['title'],
        'institutionalEmail': json['institutionalEmail'] == null ? undefined : json['institutionalEmail'],
    };
}
export function PrincipalInvestigatorToJSON(json) {
    return PrincipalInvestigatorToJSONTyped(json, false);
}
export function PrincipalInvestigatorToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'userId': value['userId'],
        'name': value['name'],
        'title': value['title'],
        'institutionalEmail': value['institutionalEmail'],
    };
}
//# sourceMappingURL=PrincipalInvestigator.js.map