WorkloadsConfig.fromJson constructor

WorkloadsConfig.fromJson(
  1. Map json_
)

Implementation

WorkloadsConfig.fromJson(core.Map json_)
    : this(
        dagProcessor: json_.containsKey('dagProcessor')
            ? DagProcessorResource.fromJson(
                json_['dagProcessor'] as core.Map<core.String, core.dynamic>)
            : null,
        scheduler: json_.containsKey('scheduler')
            ? SchedulerResource.fromJson(
                json_['scheduler'] as core.Map<core.String, core.dynamic>)
            : null,
        triggerer: json_.containsKey('triggerer')
            ? TriggererResource.fromJson(
                json_['triggerer'] as core.Map<core.String, core.dynamic>)
            : null,
        webServer: json_.containsKey('webServer')
            ? WebServerResource.fromJson(
                json_['webServer'] as core.Map<core.String, core.dynamic>)
            : null,
        worker: json_.containsKey('worker')
            ? WorkerResource.fromJson(
                json_['worker'] as core.Map<core.String, core.dynamic>)
            : null,
      );