messagesJsonToList function
Implementation
List<InboxMessage> messagesJsonToList(List<dynamic> messageArray) {
List<InboxMessage> messages = [];
for (final message in messageArray) {
InboxMessage? inboxMessage = messageFromJson(message);
if (inboxMessage != null) {
messages.add(inboxMessage);
}
}
return messages;
}