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
When calling toJson() on fetched HealthDataPoints that are being read from health, a const Map<HealthDataType, String> HealthDataTypeJsonValue is used to determine the string value in the json, usually just the lower case enum name.
In November 2021 five nutrition data types were added where those values have not been added to this Mapping: #430
(will open a PR shortly for this)
Describe the bug
When calling toJson() on fetched HealthDataPoints that are being read from health, a
const Map<HealthDataType, String> HealthDataTypeJsonValue
is used to determine the string value in the json, usually just the lower case enum name.In November 2021 five nutrition data types were added where those values have not been added to this Mapping: #430
To Reproduce
Read any of the above described data types from health and call toJson() on them.
Expected behavior
A Json Object containing a non-empty String in the
data_type
field.Actual behavior
A Json Object containing an empty String as
data_type
field.The text was updated successfully, but these errors were encountered: