/* 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 { RestrictionFulfillmentFromJSON, RestrictionFulfillmentToJSON, } from './RestrictionFulfillment';
import { UserEntityPermissionsFromJSON, UserEntityPermissionsToJSON, } from './UserEntityPermissions';
/**
 * @export
 */
export const RestrictionInformationResponseRestrictionLevelEnum = {
    OPEN: 'OPEN',
    RESTRICTED_BY_TERMS_OF_USE: 'RESTRICTED_BY_TERMS_OF_USE',
    CONTROLLED_BY_ACT: 'CONTROLLED_BY_ACT'
};
/**
 * Check if a given object implements the RestrictionInformationResponse interface.
 */
export function instanceOfRestrictionInformationResponse(value) {
    return true;
}
export function RestrictionInformationResponseFromJSON(json) {
    return RestrictionInformationResponseFromJSONTyped(json, false);
}
export function RestrictionInformationResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'objectId': json['objectId'] == null ? undefined : json['objectId'],
        'restrictionLevel': json['restrictionLevel'] == null ? undefined : json['restrictionLevel'],
        'hasUnmetAccessRequirement': json['hasUnmetAccessRequirement'] == null ? undefined : json['hasUnmetAccessRequirement'],
        'userEntityPermissions': json['userEntityPermissions'] == null ? undefined : UserEntityPermissionsFromJSON(json['userEntityPermissions']),
        'restrictionDetails': json['restrictionDetails'] == null ? undefined : (json['restrictionDetails'].map(RestrictionFulfillmentFromJSON)),
    };
}
export function RestrictionInformationResponseToJSON(json) {
    return RestrictionInformationResponseToJSONTyped(json, false);
}
export function RestrictionInformationResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'objectId': value['objectId'],
        'restrictionLevel': value['restrictionLevel'],
        'hasUnmetAccessRequirement': value['hasUnmetAccessRequirement'],
        'userEntityPermissions': UserEntityPermissionsToJSON(value['userEntityPermissions']),
        'restrictionDetails': value['restrictionDetails'] == null ? undefined : (value['restrictionDetails'].map(RestrictionFulfillmentToJSON)),
    };
}
//# sourceMappingURL=RestrictionInformationResponse.js.map