jsonMap method

  1. @override
Map<String, Object> jsonMap()

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;
}