custom static method

Insertable<NetworkAuditData> custom({
  1. Expression<int>? id,
  2. Expression<DateTime>? createdAt,
  3. Expression<double>? totalDownload,
  4. Expression<double>? totalUpload,
  5. Expression<double>? downloadSpeed,
  6. Expression<double>? uploadSpeed,
  7. Expression<bool>? isWifi,
  8. Expression<bool>? isCellular,
  9. Expression<bool>? isEthernet,
  10. Expression<String>? wifiSsid,
})

Implementation

static Insertable<NetworkAuditData> custom({
  Expression<int>? id,
  Expression<DateTime>? createdAt,
  Expression<double>? totalDownload,
  Expression<double>? totalUpload,
  Expression<double>? downloadSpeed,
  Expression<double>? uploadSpeed,
  Expression<bool>? isWifi,
  Expression<bool>? isCellular,
  Expression<bool>? isEthernet,
  Expression<String>? wifiSsid,
}) {
  return RawValuesInsertable({
    if (id != null) 'id': id,
    if (createdAt != null) 'created_at': createdAt,
    if (totalDownload != null) 'total_download': totalDownload,
    if (totalUpload != null) 'total_upload': totalUpload,
    if (downloadSpeed != null) 'download_speed': downloadSpeed,
    if (uploadSpeed != null) 'upload_speed': uploadSpeed,
    if (isWifi != null) 'is_wifi': isWifi,
    if (isCellular != null) 'is_cellular': isCellular,
    if (isEthernet != null) 'is_ethernet': isEthernet,
    if (wifiSsid != null) 'wifi_ssid': wifiSsid,
  });
}