title: Parse Mutable Live Data to Array in Kotlin
body: <p>There is a mutableLiveData Holding 2 array "deal" and "category" I need to parse this both in different adapters. </p>
  
  <p>Is there a way I can convert 1 mutable live data to 2 array and then parse them to two different adapters</p>
  
  <p>Suppose There is MutableVariable Name se </p>
  
  <p><code>private lateinit var mHomePojo: MutableLiveData&lt;List&lt;HomePojo&gt;&gt;</code></p>
  
  <p>having parse Json as below </p>
  
  <pre><code> {
     "status": 0,
     "response": "success",
     "category": [
       {
         "categoryName": "demo",
         "categoryDesc": "demo"
       },
       {
         "categoryName": "demo1",
         "categoryDesc": "demo"
       }
     ],
     "deal": [
       {
         "dealImg": "https://aiotechnology.in/Aditechweb/upload/153102117.jpg",
         "dealDesc": "gd",
         "dealStartDate": "2019-10-18",
         "dealEndDate": "2019-10-19"
       }
     ]
   }
  </code></pre>
  
  <p>Is there any way to parse <code>private lateinit var mHomePojo: MutableLiveData&lt;List&lt;HomePojo&gt;&gt;</code> to <code>lateinit var mDealModel: MutableLiveData&lt;List&lt;DealModel&gt;&gt;</code> and 
      <code>lateinit var mCategoryModel: MutableLiveData&lt;List&lt;CategoryModel&gt;&gt;</code></p>
  
  <p>I am new to MVVM please help</p>