Unable to fetch last record from firebase table
<p>I am unable to retrieve data from the chat table using below query, can someone please take a look. thanks</p>

<p>Chat table format</p>

<pre><code>chat
 GWyC4hqk9oRB3UxXbCV8IdqDT8M2-YazXdhCCTeF7KRQNKq2duS9qF3
 -K_89zEV7TLoeatnAToj
 action:""
 imagePath:""
 sender:"YazXdhCCTeF7KRQNKq2duS9qF3"
 text:"Hi"

 -K_8EmH2cB53KoW5qoX9
 action: ""
 imagePath: ""
 sender: "YazXdhCCTeF7KRQNKq2duS9qF3"
 text: "hi"
</code></pre>

<p>Query code</p>

<pre><code> mRef = new Firebase("https://moe-90cc7.firebaseio.com/chat");
        Query limitQuery = mRef.child(chatRoom).limitToLast(1);
        limitQuery.addListenerForSingleValueEvent(new ValueEventListener() {
            @Override
            public void onDataChange(DataSnapshot dataSnapshot) {
                final Message message = dataSnapshot.getValue(Message.class);
                 textView.setText(message.getText());

            }

            @Override
            public void onCancelled(FirebaseError firebaseError) {

            }
        });
</code></pre>

<p>Error</p>

<pre><code>Caused by: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "-K_8LQn9qhg2T-dmMmBD" (class app.chat.Message), not marked as ignorable (4 known properties: , "imagePath", "sender", "text", "action"])
                                                                  at [Source: java.io.StringReader@250d953e; line: 1, column: 26] (through reference chain: app.core.chat.Message["-K_8LQn9qhg2T-dmMmBD"])
</code></pre>