TaskGroup.fromJson constructor
TaskGroup.fromJson(
- Map json_
Implementation
TaskGroup.fromJson(core.Map json_)
: this(
name: json_.containsKey('name') ? json_['name'] as core.String : null,
parallelism: json_.containsKey('parallelism')
? json_['parallelism'] as core.String
: null,
permissiveSsh: json_.containsKey('permissiveSsh')
? json_['permissiveSsh'] as core.bool
: null,
requireHostsFile: json_.containsKey('requireHostsFile')
? json_['requireHostsFile'] as core.bool
: null,
runAsNonRoot: json_.containsKey('runAsNonRoot')
? json_['runAsNonRoot'] as core.bool
: null,
schedulingPolicy: json_.containsKey('schedulingPolicy')
? json_['schedulingPolicy'] as core.String
: null,
taskCount: json_.containsKey('taskCount')
? json_['taskCount'] as core.String
: null,
taskCountPerNode: json_.containsKey('taskCountPerNode')
? json_['taskCountPerNode'] as core.String
: null,
taskEnvironments: json_.containsKey('taskEnvironments')
? (json_['taskEnvironments'] as core.List)
.map((value) => Environment.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
taskSpec: json_.containsKey('taskSpec')
? TaskSpec.fromJson(
json_['taskSpec'] as core.Map<core.String, core.dynamic>)
: null,
);