SoftwareConfig.fromJson constructor Null safety

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, item) => core.MapEntry(
                  key,
                  item as core.String,
                ),
              )
            : null,
        envVariables: _json.containsKey('envVariables')
            ? (_json['envVariables'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, item) => core.MapEntry(
                  key,
                  item 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, item) => core.MapEntry(
                  key,
                  item as core.String,
                ),
              )
            : null,
        pythonVersion: _json.containsKey('pythonVersion')
            ? _json['pythonVersion'] as core.String
            : null,
        schedulerCount: _json.containsKey('schedulerCount')
            ? _json['schedulerCount'] as core.int
            : null,
      );