LaunchFlexTemplateParameter.fromJson constructor
LaunchFlexTemplateParameter.fromJson(
- Map _json
Implementation
LaunchFlexTemplateParameter.fromJson(core.Map _json)
: this(
containerSpec: _json.containsKey('containerSpec')
? ContainerSpec.fromJson(
_json['containerSpec'] as core.Map<core.String, core.dynamic>)
: null,
containerSpecGcsPath: _json.containsKey('containerSpecGcsPath')
? _json['containerSpecGcsPath'] as core.String
: null,
environment: _json.containsKey('environment')
? FlexTemplateRuntimeEnvironment.fromJson(
_json['environment'] as core.Map<core.String, core.dynamic>)
: null,
jobName: _json.containsKey('jobName')
? _json['jobName'] as core.String
: null,
launchOptions: _json.containsKey('launchOptions')
? (_json['launchOptions'] as core.Map<core.String, core.dynamic>)
.map(
(key, item) => core.MapEntry(
key,
item as core.String,
),
)
: null,
parameters: _json.containsKey('parameters')
? (_json['parameters'] as core.Map<core.String, core.dynamic>)
.map(
(key, item) => core.MapEntry(
key,
item as core.String,
),
)
: null,
transformNameMappings: _json.containsKey('transformNameMappings')
? (_json['transformNameMappings']
as core.Map<core.String, core.dynamic>)
.map(
(key, item) => core.MapEntry(
key,
item as core.String,
),
)
: null,
update:
_json.containsKey('update') ? _json['update'] as core.bool : null,
);