PushPreferences.fromMap constructor

PushPreferences.fromMap(
  1. dynamic map
)

Implementation

PushPreferences.fromMap(dynamic map) {
  if (map['usePrivacyTemplate'] != null) {
    usePrivacyTemplate = map['usePrivacyTemplate'];
  }
  if (map['oneOnOnePreferences'] != null) {
    oneOnOnePreferences =
        OneOnOnePreferences.fromMap(map['oneOnOnePreferences']);
  }
  if (map['groupPreferences'] != null) {
    groupPreferences = GroupPreferences.fromMap(map['groupPreferences']);
  }
  if (map['mutePreferences'] != null) {
    mutePreferences = MutePreferences.fromMap(map['mutePreferences']);
  }
}