toJson method

Map<String, dynamic> toJson()

Implementation

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