/* 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.
 */

import { mapValues } from '../runtime';
/**
 * Transactional creation response
 * @export
 * @interface TransactionApplicationResponse
 */
export interface TransactionApplicationResponse {
    /**
     * 
     * @type {boolean}
     * @memberof TransactionApplicationResponse
     */
    applied: boolean;
    /**
     * 
     * @type {Array<string>}
     * @memberof TransactionApplicationResponse
     */
    logs: Array<string>;
}

/**
 * Check if a given object implements the TransactionApplicationResponse interface.
 */
export function instanceOfTransactionApplicationResponse(value: object): value is TransactionApplicationResponse {
    if (!('applied' in value) || value['applied'] === undefined) return false;
    if (!('logs' in value) || value['logs'] === undefined) return false;
    return true;
}

export function TransactionApplicationResponseFromJSON(json: any): TransactionApplicationResponse {
    return TransactionApplicationResponseFromJSONTyped(json, false);
}

export function TransactionApplicationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionApplicationResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'applied': json['applied'],
        'logs': json['logs'],
    };
}

export function TransactionApplicationResponseToJSON(json: any): TransactionApplicationResponse {
    return TransactionApplicationResponseToJSONTyped(json, false);
}

export function TransactionApplicationResponseToJSONTyped(value?: TransactionApplicationResponse | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'applied': value['applied'],
        'logs': value['logs'],
    };
}

