MetricTimeseries.fromJson constructor
MetricTimeseries.fromJson(
- Map json_
Implementation
MetricTimeseries.fromJson(core.Map json_)
: this(
fractionTimeseries: json_.containsKey('fractionTimeseries')
? (json_['fractionTimeseries']
as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
FractionTimeseries.fromJson(
value as core.Map<core.String, core.dynamic>),
),
)
: null,
histogramTimeseries: json_.containsKey('histogramTimeseries')
? (json_['histogramTimeseries'] as core.List)
.map((value) => TimeseriesBin.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
percentilesTimeseries: json_.containsKey('percentilesTimeseries')
? TimeseriesPercentiles.fromJson(json_['percentilesTimeseries']
as core.Map<core.String, core.dynamic>)
: null,
);