// This file was generated by generate-classes.
// DO NOT EDIT THIS FILE!
#pragma once

#include <CesiumGltf/ExtensionMeshPrimitiveKhrMaterialsVariantsMappingsValue.h>
#include <CesiumJsonReader/ArrayJsonHandler.h>
#include <CesiumJsonReader/ExtensibleObjectJsonHandler.h>
#include <CesiumJsonReader/IntegerJsonHandler.h>
#include <CesiumJsonReader/StringJsonHandler.h>

namespace CesiumJsonReader {
class JsonReaderOptions;
}

namespace CesiumGltfReader {
class ExtensionMeshPrimitiveKhrMaterialsVariantsMappingsValueJsonHandler
    : public CesiumJsonReader::ExtensibleObjectJsonHandler {
public:
  using ValueType =
      CesiumGltf::ExtensionMeshPrimitiveKhrMaterialsVariantsMappingsValue;

  ExtensionMeshPrimitiveKhrMaterialsVariantsMappingsValueJsonHandler(
      const CesiumJsonReader::JsonReaderOptions& options) noexcept;
  void reset(
      IJsonHandler* pParentHandler,
      CesiumGltf::ExtensionMeshPrimitiveKhrMaterialsVariantsMappingsValue*
          pObject);

  virtual IJsonHandler* readObjectKey(const std::string_view& str) override;

protected:
  IJsonHandler*
  readObjectKeyExtensionMeshPrimitiveKhrMaterialsVariantsMappingsValue(
      const std::string& objectType,
      const std::string_view& str,
      CesiumGltf::ExtensionMeshPrimitiveKhrMaterialsVariantsMappingsValue& o);

private:
  CesiumGltf::ExtensionMeshPrimitiveKhrMaterialsVariantsMappingsValue*
      _pObject = nullptr;
  CesiumJsonReader::
      ArrayJsonHandler<int32_t, CesiumJsonReader::IntegerJsonHandler<int32_t>>
          _variants;
  CesiumJsonReader::IntegerJsonHandler<int32_t> _material;
  CesiumJsonReader::StringJsonHandler _name;
};
} // namespace CesiumGltfReader
