"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.12.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.instanceOfTypeCreate = instanceOfTypeCreate;
exports.TypeCreateFromJSON = TypeCreateFromJSON;
exports.TypeCreateFromJSONTyped = TypeCreateFromJSONTyped;
exports.TypeCreateToJSON = TypeCreateToJSON;
exports.TypeCreateToJSONTyped = TypeCreateToJSONTyped;
/**
 * Check if a given object implements the TypeCreate interface.
 */
function instanceOfTypeCreate(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('description' in value) || value['description'] === undefined)
        return false;
    if (!('component' in value) || value['component'] === undefined)
        return false;
    if (!('modelName' in value) || value['modelName'] === undefined)
        return false;
    return true;
}
function TypeCreateFromJSON(json) {
    return TypeCreateFromJSONTyped(json, false);
}
function TypeCreateFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'],
        'description': json['description'],
        'component': json['component'],
        'modelName': json['model_name'],
        'iconUrl': json['icon_url'] == null ? undefined : json['icon_url'],
        'requiresEnterprise': json['requires_enterprise'] == null ? undefined : json['requires_enterprise'],
    };
}
function TypeCreateToJSON(json) {
    return TypeCreateToJSONTyped(json, false);
}
function TypeCreateToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'description': value['description'],
        'component': value['component'],
        'model_name': value['modelName'],
        'icon_url': value['iconUrl'],
        'requires_enterprise': value['requiresEnterprise'],
    };
}
//# sourceMappingURL=TypeCreate.js.map