jsonMap method
Implementation
@override
Map<String, Object> jsonMap() {
Map<String, Object> map = new Map<String, Object>();
if (goodPacketCount != null) {
map['goodPacketCount'] = goodPacketCount!;
}
if (latePacketCount != null) {
map['latePacketCount'] = latePacketCount!;
}
if (lostPacketCount != null) {
map['lostPacketCount'] = lostPacketCount!;
}
if (resync != null) {
map['resync'] = resync!;
}
return map;
}