MetricAbsence.fromJson constructor

MetricAbsence.fromJson(
  1. Map json_
)

Implementation

MetricAbsence.fromJson(core.Map json_)
    : this(
        aggregations: (json_['aggregations'] as core.List?)
            ?.map((value) => Aggregation.fromJson(
                value as core.Map<core.String, core.dynamic>))
            .toList(),
        duration: json_['duration'] as core.String?,
        filter: json_['filter'] as core.String?,
        trigger: json_.containsKey('trigger')
            ? Trigger.fromJson(
                json_['trigger'] as core.Map<core.String, core.dynamic>)
            : null,
      );