You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please complete the following information for each phone and/or emulator you're experiencing this bug on:
Device: iPhone 16 Pro Max
OS: iOS 18.0
Describe the bug
For any workout created by the Health app, you cannot use the fromJson method for the WorkoutHealthValue type because it is not registered in carp_serializable package.
SerializationException - A 'fromJson' function was not found in the FromJsonFactory for the type 'WorkoutHealthValue'. Register a Serializable class using the 'FromJsonFactory().register()' method.
If you are using CARP Mobile Sensing, you can ensure json initialization by calling'CarpMobileSensing.ensureInitialized()' as part of your main method.
Stack trace:
#0 FromJsonFactory.fromJson (package:carp_serializable/carp_serializable.dart:199:9)
#1 new HealthValue.fromJson (package:health/src/health_value_types.dart:11:25)
#2 _$HealthDataPointFromJson (package:health/health.g.dart:12:26)
#3 new HealthDataPoint.fromJson (package:health/src/health_data_point.dart:102:7)
Flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.3, on macOS 15.0 24A335 darwin-arm64, locale es-PE)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.1)
[✓] VS Code (version 1.93.1)
[✓] Connected device (4 available)
[✓] Network resources
• No issues found!
The text was updated successfully, but these errors were encountered:
Device / Emulator and OS
Please complete the following information for each phone and/or emulator you're experiencing this bug on:
Describe the bug
For any workout created by the Health app, you cannot use the fromJson method for the WorkoutHealthValue type because it is not registered in carp_serializable package.
To Reproduce
try to parce
Expected behavior
parse the json to HealthDataPoint entity
Actual behavior
Flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.3, on macOS 15.0 24A335 darwin-arm64, locale es-PE)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.1)
[✓] VS Code (version 1.93.1)
[✓] Connected device (4 available)
[✓] Network resources
• No issues found!
The text was updated successfully, but these errors were encountered: