upload_active_energy.dart
540 Bytes
import 'apple_health_upload_sample.dart';
import 'health_upload_data_type.dart';
class HealthActiveEnergyUploadData extends AppleHealthUploadSample {
const HealthActiveEnergyUploadData({
required super.time,
required super.value,
}) : super(dataType: HealthUploadDataType.activeEnergy);
factory HealthActiveEnergyUploadData.fromJson(Map<String, dynamic> json) {
return HealthActiveEnergyUploadData(
time: healthUploadTimeFromJson(json['time']),
value: healthUploadDoubleFromJson(json['value']),
);
}
}