title: Convert forEach List into json list in flutter
body: <p>I am trying to get list of installed apps and able to get it using mentioned code. How to make this forEach information into Json list to save it to server  as json</p>
  <pre><code>  Future&lt;void&gt; getinstalledAppList() async{
      List&lt;Application&gt; apps = await DeviceApps.getInstalledApplications();
  
      apps.forEach((app) {
        var jsonList = app.appName;
        print(jsonList);
      });
  
    }
  </code></pre>
  <p>Output of print is like below :</p>
  <pre><code>I/flutter ( 5465): WooCommerce
  I/flutter ( 5465): Amazon
  I/flutter ( 5465): Weather
  I/flutter ( 5465): OfficeSuite
  
  </code></pre>
  <p>I need output like:</p>
  <pre><code>{'WooCommerce', 'Amazon', 'Weather' , 'OfficeSuite'}
  </code></pre>