/* 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 UserPreferenceBooleanConcreteTypeEnum = {
    org_sagebionetworks_repo_model_UserPreferenceBoolean: 'org.sagebionetworks.repo.model.UserPreferenceBoolean'
};
/**
 * Check if a given object implements the UserPreferenceBoolean interface.
 */
export function instanceOfUserPreferenceBoolean(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(UserPreferenceBooleanConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function UserPreferenceBooleanFromJSON(json) {
    return UserPreferenceBooleanFromJSONTyped(json, false);
}
export function UserPreferenceBooleanFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'] == null ? undefined : json['name'],
        'concreteType': json['concreteType'],
        'value': json['value'] == null ? undefined : json['value'],
    };
}
export function UserPreferenceBooleanToJSON(json) {
    return UserPreferenceBooleanToJSONTyped(json, false);
}
export function UserPreferenceBooleanToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'concreteType': value['concreteType'],
        'value': value['value'],
    };
}
//# sourceMappingURL=UserPreferenceBoolean.js.map