"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.2-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.instanceOfFileList = instanceOfFileList;
exports.FileListFromJSON = FileListFromJSON;
exports.FileListFromJSONTyped = FileListFromJSONTyped;
exports.FileListToJSON = FileListToJSON;
exports.FileListToJSONTyped = FileListToJSONTyped;
const ThemedUrls_1 = require("./ThemedUrls");
/**
 * Check if a given object implements the FileList interface.
 */
function instanceOfFileList(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('mimeType' in value) || value['mimeType'] === undefined)
        return false;
    if (!('url' in value) || value['url'] === undefined)
        return false;
    return true;
}
function FileListFromJSON(json) {
    return FileListFromJSONTyped(json, false);
}
function FileListFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'],
        'mimeType': json['mime_type'],
        'url': json['url'],
        'themedUrls': json['themed_urls'] == null ? undefined : (0, ThemedUrls_1.ThemedUrlsFromJSON)(json['themed_urls']),
    };
}
function FileListToJSON(json) {
    return FileListToJSONTyped(json, false);
}
function FileListToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'mime_type': value['mimeType'],
        'url': value['url'],
        'themed_urls': (0, ThemedUrls_1.ThemedUrlsToJSON)(value['themedUrls']),
    };
}
//# sourceMappingURL=FileList.js.map