/*
 * This file is auto-generated, do not modify!
 *
 * SPDX-License-Identifier: LGPL-2.1-or-later
 */

#include "config.h"

#include <glib.h>

#include "fwupd-json-struct.h"

#ifdef G_LOG_DOMAIN
  #undef G_LOG_DOMAIN
#endif
#define G_LOG_DOMAIN "FuStruct"

/**
 * fwupd_json_node_kind_to_string:
 * @val: value, e.g. %FWUPD_JSON_NODE_KIND_RAW
 *
 * Converts an enumerated value to a string.
 *
 * Returns: identifier string
 *
 * Since: 2.1.1
 **/
const gchar *
fwupd_json_node_kind_to_string(FwupdJsonNodeKind val)
{
    if (val == FWUPD_JSON_NODE_KIND_NULL)
        return "null";
    if (val == FWUPD_JSON_NODE_KIND_RAW)
        return "raw";
    if (val == FWUPD_JSON_NODE_KIND_STRING)
        return "string";
    if (val == FWUPD_JSON_NODE_KIND_ARRAY)
        return "array";
    if (val == FWUPD_JSON_NODE_KIND_OBJECT)
        return "object";
    return NULL;
}


