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