toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'statistics_types': statisticsTypes?.map((e) => e.toJson()).toList(),
'metric_types': metricTypes?.map((e) => e.toJson()).toList(),
'activity_configs': activityConfigs?.map((e) => e.toJson()).toList(),
'sleep_configs': sleepConfigs?.map((e) => e.toJson()).toList(),
'health_connect_enabled': healthConnectEnabled,
'samsung_health_data_enabled': samsungHealthDataEnabled,
};
}