StepData.fromJson constructor

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

Implementation

StepData.fromJson(Map<String, dynamic> json)
    : previousDate = json['previousDate'],
      previousStepCount = json['previousStepCount'] ?? 0,
      todayDate = json['todayDate'],
      todayStepCount = json['todayStepCount'] ?? 0,
      bootCount = json['bootCount'],
      stack = json['stack']?.cast<int>() ?? [],
      lastSavedAt = json['tzLastSavedAt'],
      previousStepCountSavedAt = json['tzPreviousStepCountSavedAt'];