toJson method

Map<String, dynamic> toJson()

Convert to JSON

Implementation

Map<String, dynamic> toJson() => {
      "connected_on": connectedOn,
      "duration": duration,
      "byte_in": byteIn,
      "byte_out": byteOut,
      "packets_in": packetsIn,
      "packets_out": packetsOut,
    };