title: How to fetch json Array with flutter null safety?
body: <p>I want to display restaurent details inside listview. But, i am constantly getting error called &quot;Null check operator used on null&quot; value even if i am getting the json response body. Can anyone help me with this to know where exactly i am going wrong? Error shows inside the lisview builder. I want to display json data inside listview.</p>
  <p>Json to be fetched</p>
  <pre><code>[{
      &quot;_id&quot;: &quot;5cd140215dcd1c1cf4971f72&quot;,
      &quot;Name&quot;: &quot;Gin Menu&quot;,
      &quot;IsMain&quot;: false,
      &quot;Schedule&quot;: [],
      &quot;Image&quot;: {
          &quot;ID&quot;: &quot;5c1cd81db5cf1707ac419be1&quot;,
          &quot;Name&quot;: &quot;Gin Menu Banner.jpg&quot;,
          &quot;AltText&quot;: &quot;Gin Menu&quot;,
          &quot;Url&quot;: &quot;/local-media/5c1cd81db5cf1707ac419be1/Gin Menu Bannermin.jpg&quot;,
          &quot;FileSize&quot;: 133268,
          &quot;IsImage&quot;: true,
          &quot;Sizes&quot;: [{
              &quot;Name&quot;: &quot;thumb&quot;,
              &quot;Height&quot;: 72,
              &quot;Width&quot;: 150,
              &quot;Url&quot;: &quot;/local-media/5c1cd81db5cf1707ac419be1/size/thumb-1545394278352.jpg&quot;
          }]
      },
      &quot;FeatureBoxImage&quot;: {
          &quot;ID&quot;: &quot;5c1cd813b5cf1707ac419be0&quot;,
          &quot;Name&quot;: &quot;Gin Menu Small.jpg&quot;,
          &quot;AltText&quot;: &quot;Gin Menu&quot;,
          &quot;Url&quot;: &quot;/local-media/5c1cd813b5cf1707ac419be0/Gin Menu Smallmin.jpg&quot;,
          &quot;FileSize&quot;: 52722,
          &quot;IsImage&quot;: true,
          &quot;Sizes&quot;: [{
              &quot;Name&quot;: &quot;thumb&quot;,
              &quot;Height&quot;: 112,
              &quot;Width&quot;: 150,
              &quot;Url&quot;: &quot;/local-media/5c1cd813b5cf1707ac419be0/size/thumb-1545394278530.jpg&quot;
          }]
      },
      &quot;ModifiedDate&quot;: &quot;2019-06-26T06:42:44.754Z&quot;
  }, {
      &quot;_id&quot;: &quot;5c7d0dcb1ce9a723b46207d8&quot;,
      &quot;Name&quot;: &quot;The Brigadoon&quot;,
      &quot;IsMain&quot;: false,
      &quot;Schedule&quot;: [],
      &quot;Image&quot;: {
          &quot;ID&quot;: &quot;5c1cc449b5cf1707ac419bda&quot;,
          &quot;Name&quot;: &quot;Brigadoon Banner.jpg&quot;,
          &quot;AltText&quot;: &quot;Black Watch Brigadoon&quot;,
          &quot;Url&quot;: &quot;/local-media/5c1cc449b5cf1707ac419bda/Brigadoon Bannermin.jpg&quot;,
          &quot;FileSize&quot;: 111161,
          &quot;IsImage&quot;: true,
          &quot;Sizes&quot;: [{
              &quot;Name&quot;: &quot;thumb&quot;,
              &quot;Height&quot;: 72,
              &quot;Width&quot;: 150,
              &quot;Url&quot;: &quot;/local-media/5c1cc449b5cf1707ac419bda/size/thumb-1545389147819.jpg&quot;
          }]
      },
      &quot;FeatureBoxImage&quot;: {
          &quot;ID&quot;: &quot;5c1cc3ceb5cf1707ac419bd9&quot;,
          &quot;Name&quot;: &quot;Brigadoon Small.jpg&quot;,
          &quot;AltText&quot;: &quot;Black Watch Brigadoon&quot;,
          &quot;Url&quot;: &quot;/local-media/5c1cc3ceb5cf1707ac419bd9/Brigadoon Smallmin.jpg&quot;,
          &quot;FileSize&quot;: 57222,
          &quot;IsImage&quot;: true,
          &quot;Sizes&quot;: [{
              &quot;Name&quot;: &quot;thumb&quot;,
              &quot;Height&quot;: 112,
              &quot;Width&quot;: 150,
              &quot;Url&quot;: &quot;/local-media/5c1cc3ceb5cf1707ac419bd9/size/thumb-1545389035679.jpg&quot;
          }]
      },
      &quot;ModifiedDate&quot;: &quot;2019-06-26T06:42:44.753Z&quot;
  }, {
      &quot;_id&quot;: &quot;5c4711bd9e7cfb1ea4885404&quot;,
      &quot;Name&quot;: &quot;Little Skippers&quot;,
      &quot;IsMain&quot;: false,
      &quot;Schedule&quot;: [],
      &quot;Image&quot;: {
          &quot;ID&quot;: &quot;5c24a847df2455109c8a0e84&quot;,
          &quot;Name&quot;: &quot;Little Skippers Banner.jpg&quot;,
          &quot;AltText&quot;: &quot;Little Skippers&quot;,
          &quot;Url&quot;: &quot;/local-media/5c24a847df2455109c8a0e84/Little Skippers Bannermin.jpg&quot;,
          &quot;FileSize&quot;: 72479,
          &quot;IsImage&quot;: true,
          &quot;Sizes&quot;: [{
              &quot;Name&quot;: &quot;thumb&quot;,
              &quot;Height&quot;: 72,
              &quot;Width&quot;: 150,
              &quot;Url&quot;: &quot;/local-media/5c24a847df2455109c8a0e84/size/thumb-1545907409393.jpg&quot;
          }]
      },
      &quot;FeatureBoxImage&quot;: {
          &quot;ID&quot;: &quot;5c24a846df2455109c8a0e83&quot;,
          &quot;Name&quot;: &quot;Little Skippers Small.jpg&quot;,
          &quot;AltText&quot;: &quot;Little Skippers&quot;,
          &quot;Url&quot;: &quot;/local-media/5c24a846df2455109c8a0e83/Little Skippers Smallmin.jpg&quot;,
          &quot;FileSize&quot;: 26117,
          &quot;IsImage&quot;: true,
          &quot;Sizes&quot;: [{
              &quot;Name&quot;: &quot;thumb&quot;,
              &quot;Height&quot;: 112,
              &quot;Width&quot;: 150,
              &quot;Url&quot;: &quot;/local-media/5c24a846df2455109c8a0e83/size/thumb-1545907409398.jpg&quot;
          }]
      },
      &quot;ModifiedDate&quot;: &quot;2019-06-26T06:42:44.753Z&quot;
  }, {
      &quot;_id&quot;: &quot;5c4711b89e7cfb1ea4885403&quot;,
      &quot;Name&quot;: &quot;Speciality Drinks&quot;,
      &quot;IsMain&quot;: false,
      &quot;Schedule&quot;: [],
      &quot;Image&quot;: {
          &quot;ID&quot;: &quot;5c24a846df2455109c8a0e80&quot;,
          &quot;Name&quot;: &quot;Speciality Drinks Banner.jpg&quot;,
          &quot;AltText&quot;: &quot;Speciality Drinks&quot;,
          &quot;Url&quot;: &quot;/local-media/5c24a846df2455109c8a0e80/Speciality Drinks Bannermin.jpg&quot;,
          &quot;FileSize&quot;: 69032,
          &quot;IsImage&quot;: true,
          &quot;Sizes&quot;: [{
              &quot;Name&quot;: &quot;thumb&quot;,
              &quot;Height&quot;: 72,
              &quot;Width&quot;: 150,
              &quot;Url&quot;: &quot;/local-media/5c24a846df2455109c8a0e80/size/thumb-1545907409390.jpg&quot;
          }]
      },
      &quot;FeatureBoxImage&quot;: {
          &quot;ID&quot;: &quot;5c24a845df2455109c8a0e7f&quot;,
          &quot;Name&quot;: &quot;Speciality Drinks Small.jpg&quot;,
          &quot;AltText&quot;: &quot;Speciality Drinks&quot;,
          &quot;Url&quot;: &quot;/local-media/5c24a845df2455109c8a0e7f/Speciality Drinks Smallmin.jpg&quot;,
          &quot;FileSize&quot;: 35169,
          &quot;IsImage&quot;: true,
          &quot;Sizes&quot;: [{
              &quot;Name&quot;: &quot;thumb&quot;,
              &quot;Height&quot;: 112,
              &quot;Width&quot;: 150,
              &quot;Url&quot;: &quot;/local-media/5c24a845df2455109c8a0e7f/size/thumb-1545907409324.jpg&quot;
          }]
      },
      &quot;ModifiedDate&quot;: &quot;2019-06-26T06:42:44.753Z&quot;
  }, {
      &quot;_id&quot;: &quot;5c4711ae59ef2019802fc5f7&quot;,
      &quot;Name&quot;: &quot;Traditional Afternoon Tea&quot;,
      &quot;IsMain&quot;: false,
      &quot;Schedule&quot;: [],
      &quot;Image&quot;: {
          &quot;ID&quot;: &quot;5c24a8459b560023f4f1253b&quot;,
          &quot;Name&quot;: &quot;Traditional Afternoon Tea Banner.jpg&quot;,
          &quot;AltText&quot;: &quot;Traditional Afternoon Tea&quot;,
          &quot;Url&quot;: &quot;/local-media/5c24a8459b560023f4f1253b/TAT Bannermin.jpg&quot;,
          &quot;FileSize&quot;: 73732,
          &quot;IsImage&quot;: true,
          &quot;Sizes&quot;: [{
              &quot;Name&quot;: &quot;thumb&quot;,
              &quot;Height&quot;: 72,
              &quot;Width&quot;: 150,
              &quot;Url&quot;: &quot;/local-media/5c24a8459b560023f4f1253b/size/thumb-1545907409389.jpg&quot;
          }]
      },
      &quot;FeatureBoxImage&quot;: {
          &quot;ID&quot;: &quot;5c24a845df2455109c8a0e7e&quot;,
          &quot;Name&quot;: &quot;Traditional Afternoon Tea Small.jpg&quot;,
          &quot;AltText&quot;: &quot;Traditional Afternoon Tea&quot;,
          &quot;Url&quot;: &quot;/local-media/5c24a845df2455109c8a0e7e/TAT Smallmin.jpg&quot;,
          &quot;FileSize&quot;: 41278,
          &quot;IsImage&quot;: true,
          &quot;Sizes&quot;: [{
              &quot;Name&quot;: &quot;thumb&quot;,
              &quot;Height&quot;: 112,
              &quot;Width&quot;: 150,
              &quot;Url&quot;: &quot;/local-media/5c24a845df2455109c8a0e7e/size/thumb-1545907409405.jpg&quot;
          }]
      },
      &quot;ModifiedDate&quot;: &quot;2019-06-26T06:42:44.753Z&quot;
  }, {
      &quot;_id&quot;: &quot;5c4711a859ef2019802fc5f6&quot;,
      &quot;Name&quot;: &quot;The Bookmark Café&quot;,
      &quot;IsMain&quot;: false,
      &quot;Schedule&quot;: [],
      &quot;Image&quot;: {
          &quot;ID&quot;: &quot;5c24a845df2455109c8a0e7d&quot;,
          &quot;Name&quot;: &quot;The Bookmark Cafe Banner.jpg&quot;,
          &quot;AltText&quot;: &quot;The Bookmark Cafe&quot;,
          &quot;Url&quot;: &quot;/local-media/5c24a845df2455109c8a0e7d/The Bookmark Cafe Bannermin.jpg&quot;,
          &quot;FileSize&quot;: 79988,
          &quot;IsImage&quot;: true,
          &quot;Sizes&quot;: [{
              &quot;Name&quot;: &quot;thumb&quot;,
              &quot;Height&quot;: 72,
              &quot;Width&quot;: 150,
              &quot;Url&quot;: &quot;/local-media/5c24a845df2455109c8a0e7d/size/thumb-1545907409388.jpg&quot;
          }]
      },
      &quot;FeatureBoxImage&quot;: {
          &quot;ID&quot;: &quot;5c24a8459b560023f4f1253a&quot;,
          &quot;Name&quot;: &quot;The Bookmark Cafe Small.jpg&quot;,
          &quot;AltText&quot;: &quot;The Bookmark Cafe&quot;,
          &quot;Url&quot;: &quot;/local-media/5c24a8459b560023f4f1253a/The Bookmark Cafe Smallmin.jpg&quot;,
          &quot;FileSize&quot;: 42153,
          &quot;IsImage&quot;: true,
          &quot;Sizes&quot;: [{
              &quot;Name&quot;: &quot;thumb&quot;,
              &quot;Height&quot;: 112,
              &quot;Width&quot;: 150,
              &quot;Url&quot;: &quot;/local-media/5c24a8459b560023f4f1253a/size/thumb-1545907409398.jpg&quot;
          }]
      },
      &quot;ModifiedDate&quot;: &quot;2019-06-26T06:42:44.753Z&quot;
  }, {
      &quot;_id&quot;: &quot;5c47119d59ef2019802fc5f5&quot;,
      &quot;Name&quot;: &quot;All Inclusive&quot;,
      &quot;IsMain&quot;: false,
      &quot;Schedule&quot;: [],
      &quot;Image&quot;: {
          &quot;ID&quot;: &quot;5c24acf69b560023f4f12543&quot;,
          &quot;Name&quot;: &quot;All Inclusive Banner.jpg&quot;,
          &quot;AltText&quot;: &quot;All Inclusive&quot;,
          &quot;Url&quot;: &quot;/local-media/5c24acf69b560023f4f12543/All Inclusive Bannermin.jpg&quot;,
          &quot;FileSize&quot;: 78711,
          &quot;IsImage&quot;: true,
          &quot;Sizes&quot;: [{
              &quot;Name&quot;: &quot;thumb&quot;,
              &quot;Height&quot;: 72,
              &quot;Width&quot;: 150,
              &quot;Url&quot;: &quot;/local-media/5c24acf69b560023f4f12543/size/thumb-1545907482729.jpg&quot;
          }]
      },
      &quot;FeatureBoxImage&quot;: {
          &quot;ID&quot;: &quot;5c24acf6df2455109c8a0e8c&quot;,
          &quot;Name&quot;: &quot;All Inclusive Small.jpg&quot;,
          &quot;AltText&quot;: &quot;All Inclusive&quot;,
          &quot;Url&quot;: &quot;/local-media/5c24acf6df2455109c8a0e8c/All Inclusive Smallmin.jpg&quot;,
          &quot;FileSize&quot;: 41256,
          &quot;IsImage&quot;: true,
          &quot;Sizes&quot;: [{
              &quot;Name&quot;: &quot;thumb&quot;,
              &quot;Height&quot;: 112,
              &quot;Width&quot;: 150,
              &quot;Url&quot;: &quot;/local-media/5c24acf6df2455109c8a0e8c/size/thumb-1545907482803.jpg&quot;
          }]
      },
      &quot;ModifiedDate&quot;: &quot;2019-06-26T06:42:44.752Z&quot;
  }, {
      &quot;_id&quot;: &quot;5c4711919e7cfb1ea48853ff&quot;,
      &quot;Name&quot;: &quot;Bar Menu&quot;,
      &quot;IsMain&quot;: false,
      &quot;Schedule&quot;: [],
      &quot;Image&quot;: {
          &quot;ID&quot;: &quot;5c24a847df2455109c8a0e85&quot;,
          &quot;Name&quot;: &quot;Bar Menu Banner.jpg&quot;,
          &quot;AltText&quot;: &quot;Bar Menu&quot;,
          &quot;Url&quot;: &quot;/local-media/5c24a847df2455109c8a0e85/Bar Menu Bannermin.jpg&quot;,
          &quot;FileSize&quot;: 95343,
          &quot;IsImage&quot;: true,
          &quot;Sizes&quot;: [{
              &quot;Name&quot;: &quot;thumb&quot;,
              &quot;Height&quot;: 72,
              &quot;Width&quot;: 150,
              &quot;Url&quot;: &quot;/local-media/5c24a847df2455109c8a0e85/size/thumb-1545907409106.jpg&quot;
          }]
      },
      &quot;FeatureBoxImage&quot;: {
          &quot;ID&quot;: &quot;5c24a8479b560023f4f1253c&quot;,
          &quot;Name&quot;: &quot;Bar Menu Small.jpg&quot;,
          &quot;AltText&quot;: &quot;Bar Menu&quot;,
          &quot;Url&quot;: &quot;/local-media/5c24a8479b560023f4f1253c/Bar Menu Smallmin.jpg&quot;,
          &quot;FileSize&quot;: 49277,
          &quot;IsImage&quot;: true,
          &quot;Sizes&quot;: [{
              &quot;Name&quot;: &quot;thumb&quot;,
              &quot;Height&quot;: 112,
              &quot;Width&quot;: 150,
              &quot;Url&quot;: &quot;/local-media/5c24a8479b560023f4f1253c/size/thumb-1545907409139.jpg&quot;
          }]
      },
      &quot;ModifiedDate&quot;: &quot;2019-06-26T06:42:44.752Z&quot;
  }, {
      &quot;_id&quot;: &quot;5c4711799e7cfb1ea48853fd&quot;,
      &quot;Name&quot;: &quot;Wine Menu&quot;,
      &quot;IsMain&quot;: false,
      &quot;Schedule&quot;: [],
      &quot;Image&quot;: {
          &quot;ID&quot;: &quot;5c1cd45f8ad49c181c12f02c&quot;,
          &quot;Name&quot;: &quot;Wine Banner.jpg&quot;,
          &quot;AltText&quot;: &quot;Wine Menu&quot;,
          &quot;Url&quot;: &quot;/local-media/5c1cd45f8ad49c181c12f02c/Wine Bannermin.jpg&quot;,
          &quot;FileSize&quot;: 67251,
          &quot;IsImage&quot;: true,
          &quot;Sizes&quot;: [{
              &quot;Name&quot;: &quot;thumb&quot;,
              &quot;Height&quot;: 72,
              &quot;Width&quot;: 150,
              &quot;Url&quot;: &quot;/local-media/5c1cd45f8ad49c181c12f02c/size/thumb-1545394278503.jpg&quot;
          }]
      },
      &quot;FeatureBoxImage&quot;: {
          &quot;ID&quot;: &quot;5c1cd45e8ad49c181c12f02b&quot;,
          &quot;Name&quot;: &quot;Wine Small.jpg&quot;,
          &quot;AltText&quot;: &quot;Wine Menu&quot;,
          &quot;Url&quot;: &quot;/local-media/5c1cd45e8ad49c181c12f02b/Wine Smallmin.jpg&quot;,
          &quot;FileSize&quot;: 33842,
          &quot;IsImage&quot;: true,
          &quot;Sizes&quot;: [{
              &quot;Name&quot;: &quot;thumb&quot;,
              &quot;Height&quot;: 112,
              &quot;Width&quot;: 150,
              &quot;Url&quot;: &quot;/local-media/5c1cd45e8ad49c181c12f02b/size/thumb-1545394278527.jpg&quot;
          }]
      },
      &quot;ModifiedDate&quot;: &quot;2019-06-26T06:42:44.752Z&quot;
  }, {
      &quot;_id&quot;: &quot;5c4710e159ef2019802fc5ec&quot;,
      &quot;Name&quot;: &quot;Room Service&quot;,
      &quot;IsMain&quot;: false,
      &quot;Schedule&quot;: [],
      &quot;Image&quot;: {
          &quot;ID&quot;: &quot;5c24a846df2455109c8a0e82&quot;,
          &quot;Name&quot;: &quot;Room Service Banner.jpg&quot;,
          &quot;AltText&quot;: &quot;Room Service&quot;,
          &quot;Url&quot;: &quot;/local-media/5c24a846df2455109c8a0e82/Room Service Bannermin.jpg&quot;,
          &quot;FileSize&quot;: 64807,
          &quot;IsImage&quot;: true,
          &quot;Sizes&quot;: [{
              &quot;Name&quot;: &quot;thumb&quot;,
              &quot;Height&quot;: 72,
              &quot;Width&quot;: 150,
              &quot;Url&quot;: &quot;/local-media/5c24a846df2455109c8a0e82/size/thumb-1545907409399.jpg&quot;
          }]
      },
      &quot;FeatureBoxImage&quot;: {
          &quot;ID&quot;: &quot;5c24a846df2455109c8a0e81&quot;,
          &quot;Name&quot;: &quot;Room Service Small.jpg&quot;,
          &quot;AltText&quot;: &quot;Room Service&quot;,
          &quot;Url&quot;: &quot;/local-media/5c24a846df2455109c8a0e81/Room Service Smallmin.jpg&quot;,
          &quot;FileSize&quot;: 32031,
          &quot;IsImage&quot;: true,
          &quot;Sizes&quot;: [{
              &quot;Name&quot;: &quot;thumb&quot;,
              &quot;Height&quot;: 112,
              &quot;Width&quot;: 150,
              &quot;Url&quot;: &quot;/local-media/5c24a846df2455109c8a0e81/size/thumb-1545907409389.jpg&quot;
          }]
      },
      &quot;ModifiedDate&quot;: &quot;2019-06-26T06:42:44.760Z&quot;
  }, {
      &quot;_id&quot;: &quot;5c47107d59ef2019802fc5e8&quot;,
      &quot;Name&quot;: &quot;The Oriental Room&quot;,
      &quot;IsMain&quot;: false,
      &quot;Schedule&quot;: [],
      &quot;Image&quot;: {
          &quot;ID&quot;: &quot;5c1ccbae8ad49c181c12f029&quot;,
          &quot;Name&quot;: &quot;BW Oriental Room Banner.jpg&quot;,
          &quot;AltText&quot;: &quot;Black Watch Oriental Room&quot;,
          &quot;Url&quot;: &quot;/local-media/5c1ccbae8ad49c181c12f029/BW Oriental Room Bannermin.jpg&quot;,
          &quot;FileSize&quot;: 66118,
          &quot;IsImage&quot;: true,
          &quot;Sizes&quot;: [{
              &quot;Name&quot;: &quot;thumb&quot;,
              &quot;Height&quot;: 72,
              &quot;Width&quot;: 150,
              &quot;Url&quot;: &quot;/local-media/5c1ccbae8ad49c181c12f029/size/thumb-1545391203248.jpg&quot;
          }]
      },
      &quot;FeatureBoxImage&quot;: {
          &quot;ID&quot;: &quot;5c1ccbac8ad49c181c12f028&quot;,
          &quot;Name&quot;: &quot;BW Oriental Room Small.jpg&quot;,
          &quot;AltText&quot;: &quot;Black Watch Oriental Room&quot;,
          &quot;Url&quot;: &quot;/local-media/5c1ccbac8ad49c181c12f028/BW Oriental Room Smallmin.jpg&quot;,
          &quot;FileSize&quot;: 31755,
          &quot;IsImage&quot;: true,
          &quot;Sizes&quot;: [{
              &quot;Name&quot;: &quot;thumb&quot;,
              &quot;Height&quot;: 112,
              &quot;Width&quot;: 150,
              &quot;Url&quot;: &quot;/local-media/5c1ccbac8ad49c181c12f028/size/thumb-1545391203323.jpg&quot;
          }]
      },
      &quot;ModifiedDate&quot;: &quot;2019-06-26T06:42:44.752Z&quot;
  }, {
      &quot;_id&quot;: &quot;5c4710559e7cfb1ea48853ef&quot;,
      &quot;Name&quot;: &quot;The Poolside&quot;,
      &quot;IsMain&quot;: false,
      &quot;Schedule&quot;: [],
      &quot;Image&quot;: {
          &quot;ID&quot;: &quot;5c1cc86b8ad49c181c12f026&quot;,
          &quot;Name&quot;: &quot;BW The Poolside Banner.jpg&quot;,
          &quot;AltText&quot;: &quot;Black Watch The Poolside&quot;,
          &quot;Url&quot;: &quot;/local-media/5c1cc86b8ad49c181c12f026/BW The Poolside Bannermin.jpg&quot;,
          &quot;FileSize&quot;: 123988,
          &quot;IsImage&quot;: true,
          &quot;Sizes&quot;: [{
              &quot;Name&quot;: &quot;thumb&quot;,
              &quot;Height&quot;: 72,
              &quot;Width&quot;: 150,
              &quot;Url&quot;: &quot;/local-media/5c1cc86b8ad49c181c12f026/size/thumb-1574182960195.jpg&quot;
          }]
      },
      &quot;FeatureBoxImage&quot;: {
          &quot;ID&quot;: &quot;5c1cc8f3b5cf1707ac419bdd&quot;,
          &quot;Name&quot;: &quot;BW The Poolside Small.jpg&quot;,
          &quot;AltText&quot;: &quot;Black Watch The Poolside&quot;,
          &quot;Url&quot;: &quot;/local-media/5c1cc8f3b5cf1707ac419bdd/BW The Poolside Smallmin.jpg&quot;,
          &quot;FileSize&quot;: 56214,
          &quot;IsImage&quot;: true,
          &quot;Sizes&quot;: [{
              &quot;Name&quot;: &quot;thumb&quot;,
              &quot;Height&quot;: 112,
              &quot;Width&quot;: 150,
              &quot;Url&quot;: &quot;/local-media/5c1cc8f3b5cf1707ac419bdd/size/thumb-1574182974716.jpg&quot;
          }]
      },
      &quot;ModifiedDate&quot;: &quot;2019-06-26T06:42:44.760Z&quot;
  }, {
      &quot;_id&quot;: &quot;5b890c0a9efdc413a8a693b8&quot;,
      &quot;Name&quot;: &quot;The Orchid Room&quot;,
      &quot;IsMain&quot;: false,
      &quot;Schedule&quot;: [],
      &quot;Image&quot;: {
          &quot;ID&quot;: &quot;5c1cc142b5cf1707ac419bd5&quot;,
          &quot;Name&quot;: &quot;Orchid Room Banner.jpg&quot;,
          &quot;AltText&quot;: &quot;Black Watch Orchid Room&quot;,
          &quot;Url&quot;: &quot;/local-media/5c1cc142b5cf1707ac419bd5/Orchid Room Bannermin.jpg&quot;,
          &quot;FileSize&quot;: 161483,
          &quot;IsImage&quot;: true,
          &quot;Sizes&quot;: [{
              &quot;Name&quot;: &quot;thumb&quot;,
              &quot;Height&quot;: 72,
              &quot;Width&quot;: 150,
              &quot;Url&quot;: &quot;/local-media/5c1cc142b5cf1707ac419bd5/size/thumb-1545388412446.jpg&quot;
          }]
      },
      &quot;FeatureBoxImage&quot;: {
          &quot;ID&quot;: &quot;5c94d99f8492d920e8c4906a&quot;,
          &quot;Name&quot;: &quot;Orchid Room Small.jpg&quot;,
          &quot;AltText&quot;: &quot;Orchid Room&quot;,
          &quot;Url&quot;: &quot;/local-media/5c94d99f8492d920e8c4906a/Orchid Room Smallmin 1.jpg&quot;,
          &quot;FileSize&quot;: 75348,
          &quot;IsImage&quot;: true,
          &quot;Sizes&quot;: [{
              &quot;Name&quot;: &quot;thumb&quot;,
              &quot;Height&quot;: 112,
              &quot;Width&quot;: 150,
              &quot;Url&quot;: &quot;/local-media/5c94d99f8492d920e8c4906a/size/thumb-1553258941876.jpg&quot;
          }]
      },
      &quot;ModifiedDate&quot;: &quot;2019-06-26T06:42:44.749Z&quot;
  }, {
      &quot;_id&quot;: &quot;5b890bee9efdc413a8a693b4&quot;,
      &quot;Name&quot;: &quot;The Glentanar&quot;,
      &quot;IsMain&quot;: true,
      &quot;AppOrder&quot;: null,
      &quot;Schedule&quot;: [],
      &quot;Image&quot;: {
          &quot;ID&quot;: &quot;5c13799fbd1be61938f2f067&quot;,
          &quot;Name&quot;: &quot;BWGlentanar.png&quot;,
          &quot;AltText&quot;: &quot;Black Watch Glentanar Restaurant&quot;,
          &quot;Url&quot;: &quot;/local-media/5c13799fbd1be61938f2f067/BWGlentanar.png&quot;,
          &quot;FileSize&quot;: 282390,
          &quot;IsImage&quot;: true,
          &quot;Sizes&quot;: [{
              &quot;Name&quot;: &quot;thumb&quot;,
              &quot;Height&quot;: 76,
              &quot;Width&quot;: 150,
              &quot;Url&quot;: &quot;/local-media/5c13799fbd1be61938f2f067/size/thumb-1544780203790.png&quot;
          }]
      },
      &quot;FeatureBoxImage&quot;: {
          &quot;ID&quot;: &quot;5c137d51bd1be61938f2f070&quot;,
          &quot;Name&quot;: &quot;BW-Glentanar-Small.png&quot;,
          &quot;AltText&quot;: &quot;Black Watch Glentanar Restaurant&quot;,
          &quot;Url&quot;: &quot;/local-media/5c137d51bd1be61938f2f070/BWGlentanarSmall.png&quot;,
          &quot;FileSize&quot;: 114536,
          &quot;IsImage&quot;: true,
          &quot;Sizes&quot;: [{
              &quot;Name&quot;: &quot;thumb&quot;,
              &quot;Height&quot;: 112,
              &quot;Width&quot;: 150,
              &quot;Url&quot;: &quot;/local-media/5c137d51bd1be61938f2f070/size/thumb-1544781157764.png&quot;
          }]
      },
      &quot;ModifiedDate&quot;: &quot;2020-01-06T10:27:52.962Z&quot;
  }, {
      &quot;_id&quot;: &quot;5b890bf69efdc413a8a693b6&quot;,
      &quot;Name&quot;: &quot;The Black Watch Room&quot;,
      &quot;IsMain&quot;: false,
      &quot;Schedule&quot;: [],
      &quot;Image&quot;: {
          &quot;ID&quot;: &quot;5c1cc6cbb5cf1707ac419bdb&quot;,
          &quot;Name&quot;: &quot;Black Watch Room Banner.jpg&quot;,
          &quot;AltText&quot;: &quot;Black Watch Room&quot;,
          &quot;Url&quot;: &quot;/local-media/5c1cc6cbb5cf1707ac419bdb/Black Watch Room Bannermin.jpg&quot;,
          &quot;FileSize&quot;: 101075,
          &quot;IsImage&quot;: true,
          &quot;Sizes&quot;: [{
              &quot;Name&quot;: &quot;thumb&quot;,
              &quot;Height&quot;: 72,
              &quot;Width&quot;: 150,
              &quot;Url&quot;: &quot;/local-media/5c1cc6cbb5cf1707ac419bdb/size/thumb-1545390185903.jpg&quot;
          }]
      },
      &quot;FeatureBoxImage&quot;: {
          &quot;ID&quot;: &quot;5c1cc5128ad49c181c12f024&quot;,
          &quot;Name&quot;: &quot;Black Watch Room Small.jpg&quot;,
          &quot;AltText&quot;: &quot;Black Watch Room&quot;,
          &quot;Url&quot;: &quot;/local-media/5c1cc5128ad49c181c12f024/Black Watch Room Smallmin.jpg&quot;,
          &quot;FileSize&quot;: 49544,
          &quot;IsImage&quot;: true,
          &quot;Sizes&quot;: [{
              &quot;Name&quot;: &quot;thumb&quot;,
              &quot;Height&quot;: 112,
              &quot;Width&quot;: 150,
              &quot;Url&quot;: &quot;/local-media/5c1cc5128ad49c181c12f024/size/thumb-1545390186107.jpg&quot;
          }]
      },
      &quot;ModifiedDate&quot;: &quot;2019-06-26T06:42:44.748Z&quot;
  }]
  </code></pre>
  <p>My Model class</p>
  <pre><code>import 'dart:convert';
  
  List&lt;RestaurantResponseModel&gt; restaurantResponseModelFromJson(String str) =&gt; List&lt;RestaurantResponseModel&gt;.from(json.decode(str).map((x) =&gt; RestaurantResponseModel.fromJson(x)));
  
  String restaurantResponseModelToJson(List&lt;RestaurantResponseModel&gt; data) =&gt; json.encode(List&lt;dynamic&gt;.from(data.map((x) =&gt; x.toJson())));
  
  class RestaurantResponseModel {
    RestaurantResponseModel({
      this.id,
      this.name,
      this.isMain,
      this.schedule,
      this.images,
      this.featureBoxImages,
      this.modifiedDate,
      this.appOrder,
    });
  
    String? id;
    String? name;
    bool? isMain;
    List&lt;dynamic&gt;? schedule;
    Images? images;
    Images? featureBoxImages;
    DateTime? modifiedDate;
    dynamic? appOrder;
  
    factory RestaurantResponseModel.fromJson(Map&lt;String, dynamic&gt; json) =&gt; RestaurantResponseModel(
      id: json[&quot;_id&quot;],
      name: json[&quot;Name&quot;],
      isMain: json[&quot;IsMain&quot;],
      schedule: List&lt;dynamic&gt;.from(json[&quot;Schedule&quot;].map((x) =&gt; x)),
      images: Images.fromJson(json[&quot;Images&quot;]),
      featureBoxImages: Images.fromJson(json[&quot;FeatureBoxImages&quot;]),
      modifiedDate: DateTime.parse(json[&quot;ModifiedDate&quot;]),
      appOrder: json[&quot;AppOrder&quot;],
    );
  
    Map&lt;String, dynamic&gt; toJson() =&gt; {
      &quot;_id&quot;: id,
      &quot;Name&quot;: name,
      &quot;IsMain&quot;: isMain,
      &quot;Schedule&quot;: List&lt;dynamic&gt;.from(schedule!.map((x) =&gt; x)),
      &quot;Images&quot;: images!.toJson(),
      &quot;FeatureBoxImages&quot;: featureBoxImages!.toJson(),
      &quot;ModifiedDate&quot;: modifiedDate!.toIso8601String(),
      &quot;AppOrder&quot;: appOrder,
    };
  }
  
  class Images {
    Images({
      this.id,
      this.name,
      this.altText,
      this.url,
      this.fileSize,
      this.isImages,
      this.sizes,
    });
  
    String? id;
    String? name;
    String? altText;
    String? url;
    int? fileSize;
    bool? isImages;
    List&lt;Size&gt;? sizes;
  
    factory Images.fromJson(Map&lt;String, dynamic&gt; json) =&gt; Images(
      id: json[&quot;ID&quot;],
      name: json[&quot;Name&quot;],
      altText: json[&quot;AltText&quot;],
      url: json[&quot;Url&quot;],
      fileSize: json[&quot;FileSize&quot;],
      isImages: json[&quot;IsImages&quot;],
      sizes: List&lt;Size&gt;.from(json[&quot;Sizes&quot;].map((x) =&gt; Size.fromJson(x))),
    );
  
    Map&lt;String, dynamic&gt; toJson() =&gt; {
      &quot;ID&quot;: id,
      &quot;Name&quot;: name,
      &quot;AltText&quot;: altText,
      &quot;Url&quot;: url,
      &quot;FileSize&quot;: fileSize,
      &quot;IsImages&quot;: isImages,
      &quot;Sizes&quot;: List&lt;dynamic&gt;.from(sizes!.map((x) =&gt; x.toJson())),
    };
  }
  
  class Size {
    Size({
      this.name,
      this.height,
      this.width,
      this.url,
    });
  
    Name? name;
    int? height;
    int? width;
    String? url;
  
    factory Size.fromJson(Map&lt;String, dynamic&gt; json) =&gt; Size(
      name: nameValues.map[json[&quot;Name&quot;]],
      height: json[&quot;Height&quot;],
      width: json[&quot;Width&quot;],
      url: json[&quot;Url&quot;],
    );
  
    Map&lt;String, dynamic&gt; toJson() =&gt; {
      &quot;Name&quot;: nameValues.reverse[name],
      &quot;Height&quot;: height,
      &quot;Width&quot;: width,
      &quot;Url&quot;: url,
    };
  }
  
  enum Name { THUMB }
  
  final nameValues = EnumValues({
    &quot;thumb&quot;: Name.THUMB
  });
  
  class EnumValues&lt;T&gt; {
    Map&lt;String, T&gt; map;
    Map&lt;T, String&gt;? reverseMap;
  
    EnumValues(this.map);
  
    Map&lt;T, String&gt; get reverse {
      if (reverseMap == null) {
        reverseMap = map.map((k, v) =&gt; new MapEntry(v, k));
      }
      return reverseMap!;
    }
  }
  </code></pre>