ActivitySummaryHarmonized.fromJson constructor

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

General constructor from JSON payload

Implementation

ActivitySummaryHarmonized.fromJson(Map<String, dynamic> json)
    : activeEnergyBurned = json['activeEnergyBurned'],
      activeEnergyBurnedGoal = json['activeEnergyBurnedGoal'],
      activeEnergyBurnedUnit = json['activeEnergyBurnedUnit'],
      appleExerciseTime = json['appleExerciseTime'],
      appleExerciseTimeGoal = json['appleExerciseTimeGoal'],
      appleExerciseTimeUnit = json['appleExerciseTimeUnit'],
      appleStandHours = json['appleStandHours'],
      appleStandHoursGoal = json['appleStandHoursGoal'],
      appleStandHoursUnit = json['appleStandHoursUnit'];