List<Message> fromJsonToMessageList(List<dynamic> json) => json.map((e) => Message.fromJson(e as Map<String, dynamic>)).toList();