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

#include "ExtensionExtStructuralMetadataClassPropertyJsonHandler.h"

#include <CesiumGltf/ExtensionExtStructuralMetadataClass.h>
#include <CesiumJsonReader/DictionaryJsonHandler.h>
#include <CesiumJsonReader/ExtensibleObjectJsonHandler.h>
#include <CesiumJsonReader/StringJsonHandler.h>

namespace CesiumJsonReader {
class ExtensionReaderContext;
}

namespace CesiumGltfReader {
class ExtensionExtStructuralMetadataClassJsonHandler
    : public CesiumJsonReader::ExtensibleObjectJsonHandler {
public:
  using ValueType = CesiumGltf::ExtensionExtStructuralMetadataClass;

  ExtensionExtStructuralMetadataClassJsonHandler(
      const CesiumJsonReader::ExtensionReaderContext& context) noexcept;
  void reset(
      IJsonHandler* pParentHandler,
      CesiumGltf::ExtensionExtStructuralMetadataClass* pObject);

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

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

private:
  CesiumGltf::ExtensionExtStructuralMetadataClass* _pObject = nullptr;
  CesiumJsonReader::StringJsonHandler _name;
  CesiumJsonReader::StringJsonHandler _description;
  CesiumJsonReader::DictionaryJsonHandler<
      CesiumGltf::ExtensionExtStructuralMetadataClassProperty,
      ExtensionExtStructuralMetadataClassPropertyJsonHandler>
      _properties;
};
} // namespace CesiumGltfReader
