/* 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';
import type { LogEvent } from './LogEvent';
import {
    LogEventFromJSON,
    LogEventFromJSONTyped,
    LogEventToJSON,
    LogEventToJSONTyped,
} from './LogEvent';

/**
 * Logs of an attempted flow import
 * @export
 * @interface FlowImportResult
 */
export interface FlowImportResult {
    /**
     * 
     * @type {Array<LogEvent>}
     * @memberof FlowImportResult
     */
    readonly logs: Array<LogEvent>;
    /**
     * 
     * @type {boolean}
     * @memberof FlowImportResult
     */
    readonly success: boolean;
}

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

export function FlowImportResultFromJSON(json: any): FlowImportResult {
    return FlowImportResultFromJSONTyped(json, false);
}

export function FlowImportResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowImportResult {
    if (json == null) {
        return json;
    }
    return {
        
        'logs': ((json['logs'] as Array<any>).map(LogEventFromJSON)),
        'success': json['success'],
    };
}

export function FlowImportResultToJSON(json: any): FlowImportResult {
    return FlowImportResultToJSONTyped(json, false);
}

export function FlowImportResultToJSONTyped(value?: Omit<FlowImportResult, 'logs'|'success'> | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
    };
}

