Skip to content

StepCount

Step count data as number of steps taken in a corresponding time interval.

Data type CarpDataTypes.STEP_COUNT.

Inheritance
Annotations

Constructors

StepCount.fromJson

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

StepCount

StepCount({
  1. int steps = 0,
})

Properties

fromJsonFunction

Function get fromJsonFunction
override

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

steps

int steps
getter/setter pair

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.