Pipeline.fromJson constructor
Pipeline.fromJson(
- Map _json
Implementation
Pipeline.fromJson(core.Map _json)
: this(
actions: _json.containsKey('actions')
? (_json['actions'] as core.List)
.map((value) => Action.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
encryptedEnvironment: _json.containsKey('encryptedEnvironment')
? Secret.fromJson(_json['encryptedEnvironment']
as core.Map<core.String, core.dynamic>)
: null,
environment: _json.containsKey('environment')
? (_json['environment'] as core.Map<core.String, core.dynamic>)
.map(
(key, item) => core.MapEntry(
key,
item as core.String,
),
)
: null,
resources: _json.containsKey('resources')
? Resources.fromJson(
_json['resources'] as core.Map<core.String, core.dynamic>)
: null,
timeout: _json.containsKey('timeout')
? _json['timeout'] as core.String
: null,
);