"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.10.0-rc1
 * Contact: hello@goauthentik.io
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfConsentPermission = instanceOfConsentPermission;
exports.ConsentPermissionFromJSON = ConsentPermissionFromJSON;
exports.ConsentPermissionFromJSONTyped = ConsentPermissionFromJSONTyped;
exports.ConsentPermissionToJSON = ConsentPermissionToJSON;
exports.ConsentPermissionToJSONTyped = ConsentPermissionToJSONTyped;
/**
 * Check if a given object implements the ConsentPermission interface.
 */
function instanceOfConsentPermission(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('id' in value) || value['id'] === undefined)
        return false;
    return true;
}
function ConsentPermissionFromJSON(json) {
    return ConsentPermissionFromJSONTyped(json, false);
}
function ConsentPermissionFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'],
        'id': json['id'],
    };
}
function ConsentPermissionToJSON(json) {
    return ConsentPermissionToJSONTyped(json, false);
}
function ConsentPermissionToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'id': value['id'],
    };
}
//# sourceMappingURL=ConsentPermission.js.map