ClustersConfigDump.fromJson constructor

ClustersConfigDump.fromJson(
  1. Map json_
)

Implementation

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