Skip to content

GranularitySamplingConfiguration

A SamplingConfiguration which allows specifying a desired level of granularity, corresponding to expected degrees of power consumption.

Inheritance
Annotations

Constructors

GranularitySamplingConfiguration.fromJson

GranularitySamplingConfiguration.fromJson(
  1. Map<String, dynamic> json
)

GranularitySamplingConfiguration

GranularitySamplingConfiguration(
  1. Granularity granularity
)

Properties

fromJsonFunction

Function get fromJsonFunction
override

The function which can convert a JSON string to an object of this type.

granularity

Granularity granularity
getter/setter pair

The desired level of detail.

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.