INNER CODE UNIT · Dart

EbpfRunStatus

ys1231/appproxy · lib/data/ebpf_proxy_data.dart:259

class EbpfRunStatus {
  final bool running;
  final int pid;
  final String runDir;

  const EbpfRunStatus({this.running = false, this.pid = -1, this.runDir = ''});

  factory EbpfRunStatus.fromMap(Map<dynamic, dynamic>? map) {
    if (map == null) return const EbpfRunStatus();
    return EbpfRunStatus(
      running: map['running'] as bool? ?? false,
      pid: (map['pid'] as num?)?.toInt() ?? -1,
      runDir: map['runDir'] as String? ?? '',
    );
  }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…