factory NewMessageThreadModel.fromJson(Map<String, dynamic> json) => NewMessageThreadModel( messages: List<Message>.from(json["messages"].map((x) => Message.fromJson(x))), );