toJson method
Implementation
Map<String, dynamic> toJson() {
final insightsEnabled = this.insightsEnabled;
final notificationsEnabled = this.notificationsEnabled;
return {
if (insightsEnabled != null) 'InsightsEnabled': insightsEnabled,
if (notificationsEnabled != null)
'NotificationsEnabled': notificationsEnabled,
};
}