Container.fromJson constructor
Container.fromJson(
- Map json_
Implementation
Container.fromJson(core.Map json_)
: this(
args: json_.containsKey('args')
? (json_['args'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
command: json_.containsKey('command')
? (json_['command'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
env: json_.containsKey('env')
? (json_['env'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
image:
json_.containsKey('image') ? json_['image'] as core.String : null,
runAsUser: json_.containsKey('runAsUser')
? json_['runAsUser'] as core.int
: null,
workingDir: json_.containsKey('workingDir')
? json_['workingDir'] as core.String
: null,
);