/* tslint:disable */ /* eslint-disable */ /** * authentik * Making authentication simple. * * The version of the OpenAPI document: 2025.6.3 * 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. */ import { mapValues } from '../runtime'; /** * Permission used for consent * @export * @interface ConsentPermission */ export interface ConsentPermission { /** * * @type {string} * @memberof ConsentPermission */ name: string; /** * * @type {string} * @memberof ConsentPermission */ id: string; } /** * Check if a given object implements the ConsentPermission interface. */ export function instanceOfConsentPermission(value: object): value is ConsentPermission { if (!('name' in value) || value['name'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; return true; } export function ConsentPermissionFromJSON(json: any): ConsentPermission { return ConsentPermissionFromJSONTyped(json, false); } export function ConsentPermissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConsentPermission { if (json == null) { return json; } return { 'name': json['name'], 'id': json['id'], }; } export function ConsentPermissionToJSON(json: any): ConsentPermission { return ConsentPermissionToJSONTyped(json, false); } export function ConsentPermissionToJSONTyped(value?: ConsentPermission | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], 'id': value['id'], }; }