Runnable.fromJson constructor
Runnable.fromJson(
- Map json_
Implementation
Runnable.fromJson(core.Map json_)
: this(
alwaysRun: json_.containsKey('alwaysRun')
? json_['alwaysRun'] as core.bool
: null,
background: json_.containsKey('background')
? json_['background'] as core.bool
: null,
barrier: json_.containsKey('barrier')
? Barrier.fromJson(
json_['barrier'] as core.Map<core.String, core.dynamic>)
: null,
container: json_.containsKey('container')
? Container.fromJson(
json_['container'] as core.Map<core.String, core.dynamic>)
: null,
displayName: json_.containsKey('displayName')
? json_['displayName'] as core.String
: null,
environment: json_.containsKey('environment')
? Environment.fromJson(
json_['environment'] as core.Map<core.String, core.dynamic>)
: null,
ignoreExitStatus: json_.containsKey('ignoreExitStatus')
? json_['ignoreExitStatus'] as core.bool
: null,
labels: json_.containsKey('labels')
? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
script: json_.containsKey('script')
? Script.fromJson(
json_['script'] as core.Map<core.String, core.dynamic>)
: null,
timeout: json_.containsKey('timeout')
? json_['timeout'] as core.String
: null,
);