Map<String, dynamic> toJson() => { "Packet": packet, "PacketList": List<dynamic>.from(packetList.map((x) => x.toJson())), };