MonitoringConfig.fromJson constructor

MonitoringConfig.fromJson(
  1. Map json_
)

Implementation

MonitoringConfig.fromJson(core.Map json_)
    : this(
        advancedDatapathObservabilityConfig:
            json_.containsKey('advancedDatapathObservabilityConfig')
                ? AdvancedDatapathObservabilityConfig.fromJson(
                    json_['advancedDatapathObservabilityConfig']
                        as core.Map<core.String, core.dynamic>)
                : null,
        componentConfig: json_.containsKey('componentConfig')
            ? MonitoringComponentConfig.fromJson(json_['componentConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        managedPrometheusConfig: json_.containsKey('managedPrometheusConfig')
            ? ManagedPrometheusConfig.fromJson(
                json_['managedPrometheusConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );