/* 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 { UserProfileFromJSON, UserProfileToJSON, } from './UserProfile';
import { VerificationSubmissionFromJSON, VerificationSubmissionToJSON, } from './VerificationSubmission';
/**
 * Check if a given object implements the UserBundle interface.
 */
export function instanceOfUserBundle(value) {
    return true;
}
export function UserBundleFromJSON(json) {
    return UserBundleFromJSONTyped(json, false);
}
export function UserBundleFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'userId': json['userId'] == null ? undefined : json['userId'],
        'userProfile': json['userProfile'] == null ? undefined : UserProfileFromJSON(json['userProfile']),
        'ORCID': json['ORCID'] == null ? undefined : json['ORCID'],
        'verificationSubmission': json['verificationSubmission'] == null ? undefined : VerificationSubmissionFromJSON(json['verificationSubmission']),
        'isCertified': json['isCertified'] == null ? undefined : json['isCertified'],
        'isVerified': json['isVerified'] == null ? undefined : json['isVerified'],
        'isACTMember': json['isACTMember'] == null ? undefined : json['isACTMember'],
        'isARReviewer': json['isARReviewer'] == null ? undefined : json['isARReviewer'],
    };
}
export function UserBundleToJSON(json) {
    return UserBundleToJSONTyped(json, false);
}
export function UserBundleToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'userId': value['userId'],
        'userProfile': UserProfileToJSON(value['userProfile']),
        'ORCID': value['ORCID'],
        'verificationSubmission': VerificationSubmissionToJSON(value['verificationSubmission']),
        'isCertified': value['isCertified'],
        'isVerified': value['isVerified'],
        'isACTMember': value['isACTMember'],
        'isARReviewer': value['isARReviewer'],
    };
}
//# sourceMappingURL=UserBundle.js.map