PerformanceThreshold.fromJson constructor

PerformanceThreshold.fromJson(
  1. Map json_
)

Implementation

PerformanceThreshold.fromJson(core.Map json_)
  : this(
      basicSliPerformance: json_.containsKey('basicSliPerformance')
          ? BasicSli.fromJson(
              json_['basicSliPerformance']
                  as core.Map<core.String, core.dynamic>,
            )
          : null,
      performance: json_.containsKey('performance')
          ? RequestBasedSli.fromJson(
              json_['performance'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      threshold: (json_['threshold'] as core.num?)?.toDouble(),
    );