title: How to convert Flow<List<Object>> to Flow<Object> Kotlin coroutine?
body: <p>Given an <code>ObjectA</code> that contains a <code>List</code> of <code>ObjectB</code> from a <code>WebClient</code> request. I'm wanting to return a flow of my <code>DTO</code> from <code>ObjectB</code></p>
  <pre class="lang-kotlin prettyprint-override"><code>data class MyDto(val id: String, val name: String) {
   companion object {
     fun from(objectB: ObjectB) {
        return MyDto(id = objectB.id, name = objectB.name)
     }
   }
  
  ...
  return webClient.get()
     .uri(baseUrl)
     .accept(MediaType.APPLICATION_JSON)
     .retrieve()
     .bodyToFlow&lt;ObjectA&gt;()
     .flatMapConcat { response -&gt;
        val x = response.objectB.map { MyDto.from(it) }
        retrun@flatMapConcat flowOf(x)
     }
  </code></pre>
  <p>This returns JSON of <code>Array&lt;Array&lt;MyDto&gt;&gt;</code></p>
  <pre class="lang-json prettyprint-override"><code>[
   [
    {
     &quot;id&quot;: 1,
     &quot;name&quot;: &quot;Joe&quot;
    },
    {
     &quot;id&quot;: 2,
     &quot;name&quot;: &quot;Jane&quot;
    }
   ]
  ]
  </code></pre>
  <p>Expected results are <code>Flow&lt;MyDto&gt;</code></p>
  <pre class="lang-json prettyprint-override"><code>[
   {
    &quot;id&quot;: 1,
    &quot;name&quot;: &quot;Joe&quot;
   },
   {
    &quot;id&quot;: 2,
    &quot;name&quot;: &quot;Jane&quot;
   }
  ]
  </code></pre>