toJson method

Map<String, dynamic> toJson()

Implementation

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