Action.fromJson constructor
Action.fromJson(
- Map json_
Implementation
Action.fromJson(core.Map json_)
: this(
alwaysRun: json_.containsKey('alwaysRun')
? json_['alwaysRun'] as core.bool
: null,
blockExternalNetwork: json_.containsKey('blockExternalNetwork')
? json_['blockExternalNetwork'] as core.bool
: null,
commands: json_.containsKey('commands')
? (json_['commands'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
containerName: json_.containsKey('containerName')
? json_['containerName'] as core.String
: null,
credentials: json_.containsKey('credentials')
? Secret.fromJson(
json_['credentials'] as core.Map<core.String, core.dynamic>)
: null,
disableImagePrefetch: json_.containsKey('disableImagePrefetch')
? json_['disableImagePrefetch'] as core.bool
: null,
disableStandardErrorCapture:
json_.containsKey('disableStandardErrorCapture')
? json_['disableStandardErrorCapture'] as core.bool
: null,
enableFuse: json_.containsKey('enableFuse')
? json_['enableFuse'] as core.bool
: null,
encryptedEnvironment: json_.containsKey('encryptedEnvironment')
? Secret.fromJson(json_['encryptedEnvironment']
as core.Map<core.String, core.dynamic>)
: null,
entrypoint: json_.containsKey('entrypoint')
? json_['entrypoint'] as core.String
: null,
environment: json_.containsKey('environment')
? (json_['environment'] as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
ignoreExitStatus: json_.containsKey('ignoreExitStatus')
? json_['ignoreExitStatus'] as core.bool
: null,
imageUri: json_.containsKey('imageUri')
? json_['imageUri'] as core.String
: 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,
mounts: json_.containsKey('mounts')
? (json_['mounts'] as core.List)
.map((value) => Mount.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
pidNamespace: json_.containsKey('pidNamespace')
? json_['pidNamespace'] as core.String
: null,
portMappings: json_.containsKey('portMappings')
? (json_['portMappings'] as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.int,
),
)
: null,
publishExposedPorts: json_.containsKey('publishExposedPorts')
? json_['publishExposedPorts'] as core.bool
: null,
runInBackground: json_.containsKey('runInBackground')
? json_['runInBackground'] as core.bool
: null,
timeout: json_.containsKey('timeout')
? json_['timeout'] as core.String
: null,
);