LaunchFlexTemplateParameter.fromJson constructor

LaunchFlexTemplateParameter.fromJson(
  1. 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, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        parameters: json_.containsKey('parameters')
            ? (json_['parameters'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        transformNameMappings: json_.containsKey('transformNameMappings')
            ? (json_['transformNameMappings']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        update:
            json_.containsKey('update') ? json_['update'] as core.bool : null,
      );