title: How to use different classes with only one LiveData list?
body: <p>I have this interface and 2 classes, I know it's not the best approach here, but that's not the point now.</p>
  <pre><code>interface FilterItem {
      val id: String
      val name: String
      val isChecked: ObservableField&lt;Boolean&gt;
      fun reset()
  }
  
  data class Technology(
      override val id: String,
      override val name: String,
      override val isChecked: ObservableField&lt;Boolean&gt; = ObservableField(),
  ) : FilterItem {
      override fun reset() {
          isChecked.set(false)
      }
  }
  
  data class Project(
      override val id: String,
      override val name: String,
      override val isChecked: ObservableField&lt;Boolean&gt; = ObservableField(),
  ) : FilterItem {
      override fun reset() {
          isChecked.set(false)
      }
  }
  </code></pre>
  <p>And then I have a ViewModel</p>
  <pre><code>private val _filterList = MutableLiveData&lt;List&lt;FilterItem&gt;&gt;().apply {
          viewModelScope.launch {
              value = loadSkills()
          }
      }
      val filterList: LiveData&lt;List&lt;FilterItem&gt;&gt;
          get() = _filterList
  private fun loadSkills(): MutableList&lt;FilterItem&gt; {
          val technologiesList: MutableList&lt;FilterItem&gt; = mutableListOf()
          technologiesList.add(Technology(&quot;1&quot;, &quot;Android&quot;))
          technologiesList.add(Technology(&quot;2&quot;, &quot;Kotlin&quot;))
          return technologiesList
      }
      private fun loadProjects(): MutableList&lt;FilterItem&gt; {
          val projectsList: MutableList&lt;FilterItem&gt; = mutableListOf()
          projectsList.add(Project(&quot;1&quot;, &quot;Project 1&quot;))
          projectsList.add(Project(&quot;2&quot;, &quot;Project 2&quot;))
          return projectsList
      }
  </code></pre>
  <p>I want to use the filterList so that is holds a list of Technologies or a list of Projects, depending on what BottomSheetDialog I'm opening.</p>
  <pre><code>    showSkillsButton.setOnClickListener {
          showFilterModal(filterViewModel.filterList, SKILLS)
      }
      showProjectsButton.setOnClickListener {
          showFilterModal(filterViewModel.projects, PROJECTS)
      }
  </code></pre>
  <p>I want to somehow use filterList only(I had 2 lists for skills and projects, but it would be nice if I could replace them with only 1 filterList).</p>
  <p>Is there any way to do this? Or what would be the best approach?</p>