title: How to split a string from rest api?
body: <p>I have a list of string from rest API like this</p>
  <p><a href="https://i.stack.imgur.com/ZrwcG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZrwcG.png" alt="response" /></a></p>
  <p>I try to split it using this code
  <code> e.review!.map((e) =&gt; e).join(&quot; &quot;),</code></p>
  <p>and I get this result
  <a href="https://i.stack.imgur.com/OzH3K.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OzH3K.png" alt="current result" /></a></p>
  <p>but my expectation result is</p>
  <p><a href="https://i.stack.imgur.com/ja1ED.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ja1ED.png" alt="expected result" /></a></p>
  <p>How do I do that? Thank you</p>
  <p>model.dart</p>
  <pre><code>  RatingDataModel({
      this.rating,
      this.review,
    });
  
    int? rating;
    List&lt;String&gt;? review;
  
    factory RatingDataModel.fromJson(Map&lt;String, dynamic&gt; json) =&gt;
        RatingDataModel(
          rating: json[&quot;rating&quot;],
          //separate the review by space
  
          review: json[&quot;review&quot;] != null
              ? List&lt;String&gt;.from(json[&quot;review&quot;].map((x) =&gt; x))
              : null,
        );
  
    Map&lt;String, dynamic&gt; toJson() =&gt; {
          &quot;rating&quot;: rating,
          &quot;review&quot;: List&lt;dynamic&gt;.from(
            review!.map(
              (x) =&gt; x,
            ),
          ),
        };
  }
  </code></pre>