Flutter: How to Make an array with the JSON data : <p>I would like to make an array with JSON, But I duplicate the same post.
I am using the REST API JSON plugin for WordPress</p>

<p>More information about <strong>WP REST API</strong>: <a href="https://v2.wp-api.org" rel="noreferrer">https://v2.wp-api.org</a></p>

<p>This is my <strong>JSON</strong> code</p>

<pre><code>    [
  {
    "id": 65,
    "date": "2014-08-24T18:56:26",
    "date_gmt": "2014-08-24T18:56:26",
    "guid": {
      "rendered": "http:\/\/********\/********\/?p=1"
    },
    "modified": "2018-06-05T13:24:58",
    "modified_gmt": "2018-06-05T13:24:58",
    "slug": "this-url-wordpress",
    "status": "publish",
    "type": "post",
    "title": {
      "rendered": "\u2018 This a test title 1 \u2019"
     },
     "content": {
       "rendered": "&lt;p&gt;This is a content 1&lt;/p&gt;",
       "protected": false
     },
     "excerpt": {
       "rendered": "&lt;p&gt;this a excerpt 1...&lt;\/p&gt;\n",
       "protected": false
     },
     "author": 1,
     "featured_media": 468,
     "comment_status": "open",
     "ping_status": "open",
     "sticky": false,
     "template": "",
     "format": "standard",
     "meta": [ 
     ],
     "categories": [
      14
     ],
     "tags": [
      17,
      18
     ],
  },
  {
    "id": 650,
    "date": "2014-08-24T18:56:26",
    "date_gmt": "2014-08-24T18:56:26",
    "guid": {
      "rendered": "http:\/\/********\/********\/?p=1"
    },
    "modified": "2018-06-05T13:24:58",
    "modified_gmt": "2018-06-05T13:24:58",
    "slug": "this-url-wordpress",
    "status": "publish",
    "type": "post",
    "title": {
      "rendered": "\u2018 This a test title 2 \u2019"
     },
     "content": {
       "rendered": "&lt;p&gt;This is a content 2&lt;/p&gt;",
       "protected": false
     },
     "excerpt": {
       "rendered": "&lt;p&gt;this a excerpt 2...&lt;\/p&gt;\n",
       "protected": false
     },
     "author": 1,
     "featured_media": 468,
     "comment_status": "open",
     "ping_status": "open",
     "sticky": false,
     "template": "",
     "format": "standard",
     "meta": [ 
     ],
     "categories": [
      14
     ],
     "tags": [
      17,
      18
     ],
  },
  {
    "id": 230,
    "date": "2014-08-24T18:56:26",
    "date_gmt": "2014-08-24T18:56:26",
    "guid": {
      "rendered": "http:\/\/********\/********\/?p=1"
    },
    "modified": "2018-06-05T13:24:58",
    "modified_gmt": "2018-06-05T13:24:58",
    "slug": "this-url-wordpress",
    "status": "publish",
    "type": "post",
    "title": {
      "rendered": "\u2018 This a test title 3 \u2019"
     },
     "content": {
       "rendered": "&lt;p&gt;This is a content 3&lt;/p&gt;",
       "protected": false
     },
     "excerpt": {
       "rendered": "&lt;p&gt;this a excerpt 3...&lt;\/p&gt;\n",
       "protected": false
     },
     "author": 1,
     "featured_media": 468,
     "comment_status": "open",
     "ping_status": "open",
     "sticky": false,
     "template": "",
     "format": "standard",
     "meta": [ 
     ],
     "categories": [
      14
     ],
     "tags": [
      17,
      18
     ],
  },
]
</code></pre>

<p><strong>My code</strong>:</p>

<pre><code>import 'dart:async';
import 'package:flutter/material.dart';
import 'package:peluqueriafran/WebView.dart';
import 'dart:convert';
import 'package:http/http.dart' as http;

Future&lt;Post&gt; fetchPost() async {
  final response =
  await http.get('http://**********:88/WordPress/wp-json/wp/v2/posts/');
  final responseJson = json.decode(response.body);

  return new Post.fromJson(responseJson);
}

class Post {
    final int id;
    final String title;
    final String body;
    final String urlimagen;
    final String linkWeb;

    Post({this.id, this.title, this.body, this.urlimagen, this.linkWeb});

   factory Post.fromJson(Map&lt;String, dynamic&gt; json) {
      return new Post(
         title: json['title']['rendered'].toString(),
      );
   }
}
</code></pre>

<p><strong>WEB:</strong> 
<br>
<a href="https://i.stack.imgur.com/NUnRa.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/NUnRa.jpg" alt="enter image description here"></a></p>

<p><strong>App: - The last generated is selected, I would like to get all the post.</strong>
<br>
I hope someone can help me out, thanks
<br>
<a href="https://i.stack.imgur.com/1HMmb.png" rel="noreferrer"><img src="https://i.stack.imgur.com/1HMmb.png" alt="enter image description here"></a></p>
