Metrics.fromJson constructor

Metrics.fromJson(
  1. Map json_
)

Implementation

Metrics.fromJson(core.Map json_)
    : this(
        activeUsers: json_.containsKey('activeUsers')
            ? (json_['activeUsers'] as core.List)
                .map((value) => MetricsValue.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        failedExecutions: json_.containsKey('failedExecutions')
            ? (json_['failedExecutions'] as core.List)
                .map((value) => MetricsValue.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        totalExecutions: json_.containsKey('totalExecutions')
            ? (json_['totalExecutions'] as core.List)
                .map((value) => MetricsValue.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );