text: #include "pch.h"
  #include "BaseInputElement.h"
  #include "ParseUtil.h"
  
  using namespace AdaptiveSharedNamespace;
  
  BaseInputElement::BaseInputElement(CardElementType elementType) : BaseCardElement(elementType), m_isRequired(false)
  {
  }
  
  BaseInputElement::BaseInputElement(CardElementType elementType, Spacing spacing, bool separator, HeightType height) :
      BaseCardElement(elementType, spacing, separator, height), m_isRequired(false)
  {
  }
  
  std::string BaseInputElement::GetId() const
  {
      return m_id;
  }
  
  void BaseInputElement::SetId(const std::string &value)
  {
      m_id = value;
  }
  
  bool BaseInputElement::GetIsRequired() const
  {
      return m_isRequired;
  }
  
  void BaseInputElement::SetIsRequired(const bool value)
  {
      m_isRequired = value;
  }
  
  Json::Value BaseInputElement::SerializeToJsonValue() const
  {
      Json::Value root = BaseCardElement::SerializeToJsonValue();
  
      root[AdaptiveCardSchemaKeyToString(AdaptiveCardSchemaKey::Id)] = m_id;
      root[AdaptiveCardSchemaKeyToString(AdaptiveCardSchemaKey::IsRequired)] = m_isRequired;
  
      return root;
  }
  