/* 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 { SessionFromJSON, SessionToJSON, } from './Session';
/**
 * Check if a given object implements the UserSessionData interface.
 */
export function instanceOfUserSessionData(value) {
    return true;
}
export function UserSessionDataFromJSON(json) {
    return UserSessionDataFromJSONTyped(json, false);
}
export function UserSessionDataFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'session': json['session'] == null ? undefined : SessionFromJSON(json['session']),
        'isSSO': json['isSSO'] == null ? undefined : json['isSSO'],
        'profile': json['profile'] == null ? undefined : UserProfileFromJSON(json['profile']),
    };
}
export function UserSessionDataToJSON(json) {
    return UserSessionDataToJSONTyped(json, false);
}
export function UserSessionDataToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'session': SessionToJSON(value['session']),
        'isSSO': value['isSSO'],
        'profile': UserProfileToJSON(value['profile']),
    };
}
//# sourceMappingURL=UserSessionData.js.map