/* 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 GA4GHVisaTypeEnum = {
    AffiliationAndRole: 'AffiliationAndRole',
    AcceptedTermsAndPolicies: 'AcceptedTermsAndPolicies',
    ResearcherStatus: 'ResearcherStatus',
    ControlledAccessGrants: 'ControlledAccessGrants',
    LinkedIdentities: 'LinkedIdentities'
};
/**
 * @export
 */
export const GA4GHVisaByEnum = {
    self: 'self',
    peer: 'peer',
    system: 'system',
    so: 'so',
    dac: 'dac'
};
/**
 * Check if a given object implements the GA4GHVisa interface.
 */
export function instanceOfGA4GHVisa(value) {
    return true;
}
export function GA4GHVisaFromJSON(json) {
    return GA4GHVisaFromJSONTyped(json, false);
}
export function GA4GHVisaFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'type': json['type'] == null ? undefined : json['type'],
        'asserted': json['asserted'] == null ? undefined : json['asserted'],
        'value': json['value'] == null ? undefined : json['value'],
        'source': json['source'] == null ? undefined : json['source'],
        'by': json['by'] == null ? undefined : json['by'],
    };
}
export function GA4GHVisaToJSON(json) {
    return GA4GHVisaToJSONTyped(json, false);
}
export function GA4GHVisaToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'type': value['type'],
        'asserted': value['asserted'],
        'value': value['value'],
        'source': value['source'],
        'by': value['by'],
    };
}
//# sourceMappingURL=GA4GHVisa.js.map