ClusterMetrics.fromJson constructor

ClusterMetrics.fromJson(
  1. Map json_
)

Implementation

ClusterMetrics.fromJson(core.Map json_)
    : this(
        hdfsMetrics: json_.containsKey('hdfsMetrics')
            ? (json_['hdfsMetrics'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        yarnMetrics: json_.containsKey('yarnMetrics')
            ? (json_['yarnMetrics'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
      );