$Command.fromJson constructor

$Command.fromJson(
  1. Map _json
)

Implementation

$Command.fromJson(core.Map _json)
    : this(
        args: _json.containsKey('args')
            ? (_json['args'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        dir: _json.containsKey('dir') ? _json['dir'] as core.String : null,
        env: _json.containsKey('env')
            ? (_json['env'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        id: _json.containsKey('id') ? _json['id'] as core.String : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        waitFor: _json.containsKey('waitFor')
            ? (_json['waitFor'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );