parsed method

Map<String, dynamic> parsed()

For saving data, prepares appropriate map for HealthKitReporter.save

Implementation

Map<String, dynamic> parsed() {
  final arguments = <String, dynamic>{};
  if (this is Quantity) arguments['quantity'] = map;
  if (this is Category) arguments['category'] = map;
  if (this is Workout) arguments['workout'] = map;
  return arguments;
}