toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  final Map<String, dynamic> data = <String, dynamic>{};
  if (usePrivacyTemplate != null) {
    data['usePrivacyTemplate'] = usePrivacyTemplate;
  }
  if (oneOnOnePreferences != null) {
    data['oneOnOnePreferences'] = oneOnOnePreferences?.toMap();
  }
  if (groupPreferences != null) {
    data['groupPreferences'] = groupPreferences?.toMap();
  }
  if (mutePreferences != null) {
    data['mutePreferences'] = mutePreferences?.toMap();
  }
  return data;
}