fromJsonList static method

List<MessageContent> fromJsonList(
  1. List<Map<String, dynamic>> messagesMap
)

Implementation

static List<MessageContent> fromJsonList(
    List<Map<String, dynamic>> messagesMap) {
  List<MessageContent> msgsParsed = [];

  for (var item in messagesMap) {
    msgsParsed.add(fromJson(item));
  }

  return msgsParsed;
}