Skip to content

SamplingState

A serializable snapshot of an Executor's ExecutorState.

Saved with a SmartphoneStudy so sampling can be restored in the same state after an app restart. See SmartphoneDeploymentExecutorSamplingState for the full state of a deployment.

Inheritance
Implementers
Annotations

Constructors

SamplingState.fromJson

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

SamplingState

SamplingState(
  1. ExecutorState state
)

Properties

fromJsonFunction

Function get fromJsonFunction
override

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

state

ExecutorState state
getter/setter pair

The runtime state of this executor.

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.