skip to Main Content

Firebase – Flutter: type 'List<dynamic>' is not a subtype of type 'Map<String, dynamic>' in type cast

Im trying to make a list ti json for firestore, and have the following code: static Map<String, dynamic> toJson(Message? message) => { 'id': message?.id, 'senderId': message?.senderId, 'receiverId': message?.receiverId, 'message': message?.message, 'dateTime': message?.dateTime, 'timeString': message?.timeString, 'likes': message?.likes, 'chatId': message?.chatId, 'commentCount': message?.commentCount,…

VIEW QUESTION

how to populate array of dictionary values to tableview?-swift – Ios swift

I have a multidimensional array var sectionArray = [ ["sectionName":"Time","sectionData":[["fname":"true detective","date":"may 20"],["fname":"abbas","date":"may 10"]],"expanaded":false],["sectionName":"Message","sectionData":[["movie":"true","event":"Bring food"]] from this array I have to get fname keys value where fname is the value of the key sectionData.how will I achieve that? I have to…

VIEW QUESTION
Back To Top
Search