getCholesterol method

Future<Response<List<Measurement>>> getCholesterol(
  1. CholesterolType cholesterolType,
  2. String userId,
  3. DateTime startDate, {
  4. DateTime? endDate,
  5. String? provider,
})

Implementation

Future<Response<List<Measurement>>> getCholesterol(
  CholesterolType cholesterolType,
  String userId,
  DateTime startDate, {
  DateTime? endDate,
  String? provider,
}) {
  return _timeseriesRequest(
    userId,
    '${_ResourceType.cholesterol.toRequestQuery}/${cholesterolType.name}',
    startDate.toIso8601String(),
    endDate: endDate?.toIso8601String(),
    provider: provider,
  );
}