I want to get all list of restaurants from Firebase in android.
Here is my code:
boolean delivery;
String openTime, closeTime, restaurantName;
long
I'm not sure if this is the case, but may help others: Do not store null's on List's
List's as Map's with index as keys, when deserialized back it detects the correlative keys and it treats it as a 'List'So a List with a null value won't have all indexes and, when parsed, Firebase thinks that it's a Map.
Store some kind of "empty" value instead of null and it'll work.
Side note: if you have a map with correlative indexes it'll happen a similar error, just add some not numeric prefix on keys.