title: Using dictionary to deserialise
body: <p>I have created a VB.NET program that retrieves information from a Firebase Realtime Database.</p>
  
  <p>The code below gets the data from the 'information' node:</p>
  
  <pre><code>Private Async Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
      Dim resp = Await client.GetTaskAsync("information")
      Debug.WriteLine("Info: " &amp; resp.Body)
      Dim getData = resp.ResultAs(Of Dictionary(Of String, Data1))
  
      For Each i In getData
           Debug.WriteLine("Name: " &amp; i.Value.id)
      Next
  End Sub
  
  Public Class Data1
      Public id As String
      Public name As String
      Public address As String
      Public age As String
  End Class
  </code></pre>
  
  <p>Output from the data retrieval is:</p>
  
  <p>Info: {"task1":{"address":"3","age":"4","id":"1","name":"2"},"task2":{"address":"3","age":"4","id":"1","name":"2"},"task3":{"address":"3","age":"4","id":"1","name":"2"},"task4":{"address":"3","age":"4","id":"1","name":"2"},"task5":{"address":"3","age":"4","id":"1","name":"2"}}</p>
  
  <p>So I know that information is being collected correctly. The issue comes when I try to use the data to generate a list. I use <code>.ResultAs(Of Dictionary(Of String, Data1))</code>to break it down with the class 'Data1'. Key is ok for each node e.g. "task1" - but values for 'address' or 'age' etc. are null.</p>
  
  <p>Can anyone shed any light on where I'm going wrong?</p>