UpdateScopeNotificationSettings.fromMap constructor

UpdateScopeNotificationSettings.fromMap(
  1. Map<String, dynamic> map
)

Implementation

UpdateScopeNotificationSettings.fromMap(Map<String, dynamic> map) {
  extra = map['@extra'];
  client_id = map['@client_id'];
  if (map['scope'] != null) {
    scope = TdApiMap.fromMap(map['scope']) as NotificationSettingsScope;
  }
  if (map['notification_settings'] != null) {
    notification_settings = TdApiMap.fromMap(map['notification_settings']) as ScopeNotificationSettings;
  }
}