toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (device != null) {
    _json[r'device'] = device;
  }
  if (connection != null) {
    _json[r'connection'] = connection;
  }
  if (ipv4 != null) {
    _json[r'ipv4'] = ipv4;
  }
  if (statistics != null) {
    _json[r'statistics'] = statistics;
  }
  if (network != null) {
    _json[r'network'] = network;
  }
  return _json;
}