toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (airflowConfigOverrides != null)
        'airflowConfigOverrides': airflowConfigOverrides!,
      if (envVariables != null) 'envVariables': envVariables!,
      if (imageVersion != null) 'imageVersion': imageVersion!,
      if (pypiPackages != null) 'pypiPackages': pypiPackages!,
      if (pythonVersion != null) 'pythonVersion': pythonVersion!,
      if (schedulerCount != null) 'schedulerCount': schedulerCount!,
    };