RunningProcess.fromJson constructor

RunningProcess.fromJson(
  1. Map json_
)

Implementation

RunningProcess.fromJson(core.Map json_)
    : this(
        attributes: json_.containsKey('attributes')
            ? (json_['attributes'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        cmdline: json_.containsKey('cmdline')
            ? json_['cmdline'] as core.String
            : null,
        exePath: json_.containsKey('exePath')
            ? json_['exePath'] as core.String
            : null,
        pid: json_.containsKey('pid') ? json_['pid'] as core.String : null,
        user: json_.containsKey('user') ? json_['user'] as core.String : null,
      );