SoftwareConfig.fromJson constructor

SoftwareConfig.fromJson(
  1. Map json_
)

Implementation

SoftwareConfig.fromJson(core.Map json_)
    : this(
        airflowConfigOverrides: json_.containsKey('airflowConfigOverrides')
            ? (json_['airflowConfigOverrides']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        cloudDataLineageIntegration:
            json_.containsKey('cloudDataLineageIntegration')
                ? CloudDataLineageIntegration.fromJson(
                    json_['cloudDataLineageIntegration']
                        as core.Map<core.String, core.dynamic>)
                : null,
        envVariables: json_.containsKey('envVariables')
            ? (json_['envVariables'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        imageVersion: json_.containsKey('imageVersion')
            ? json_['imageVersion'] as core.String
            : null,
        pypiPackages: json_.containsKey('pypiPackages')
            ? (json_['pypiPackages'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        pythonVersion: json_.containsKey('pythonVersion')
            ? json_['pythonVersion'] as core.String
            : null,
        schedulerCount: json_.containsKey('schedulerCount')
            ? json_['schedulerCount'] as core.int
            : null,
        webServerPluginsMode: json_.containsKey('webServerPluginsMode')
            ? json_['webServerPluginsMode'] as core.String
            : null,
      );