ClustersConfigDump.fromJson constructor

ClustersConfigDump.fromJson(
  1. Map json_
)

Implementation

ClustersConfigDump.fromJson(core.Map json_)
  : this(
      dynamicActiveClusters: (json_['dynamicActiveClusters'] as core.List?)
          ?.map(
            (value) => DynamicCluster.fromJson(
              value as core.Map<core.String, core.dynamic>,
            ),
          )
          .toList(),
      dynamicWarmingClusters: (json_['dynamicWarmingClusters'] as core.List?)
          ?.map(
            (value) => DynamicCluster.fromJson(
              value as core.Map<core.String, core.dynamic>,
            ),
          )
          .toList(),
      staticClusters: (json_['staticClusters'] as core.List?)
          ?.map(
            (value) => StaticCluster.fromJson(
              value as core.Map<core.String, core.dynamic>,
            ),
          )
          .toList(),
      versionInfo: json_['versionInfo'] as core.String?,
    );