wearableReference method
Typed form of wearableReferenceJson — returns just the Path-B
fields callers usually need (status, recent_sleep_score_median).
For the full reference, parse the raw JSON yourself.
Implementation
WearableReferenceView? wearableReference() {
final json = wearableReferenceJson();
if (json == null) return null;
try {
return WearableReferenceView.fromJsonString(json);
} catch (_) {
return null;
}
}