Skip to content

SamplingConfiguration

Contains configuration on how to sample a data stream of a given type.

Set on a Measure (as Measure.overrideSamplingConfiguration) or on a device (as DeviceConfiguration.defaultSamplingConfiguration). Subclasses hold the options, e.g. GranularitySamplingConfiguration. CARP Mobile Sensing adds more, such as PeriodicSamplingConfiguration.

Inheritance
Implementers
Annotations

Constructors

SamplingConfiguration.fromJson

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

SamplingConfiguration

SamplingConfiguration()

Properties

fromJsonFunction

Function get fromJsonFunction
override

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

jsonType

String get jsonType
override

Return the __type to be used for JSON serialization of this class. Default is runtimeType. Only specify this if you need another type.

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.