fromMap static method
override
Construct from Map.
Implementation
static StoryPrivacySettings? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'storyPrivacySettingsEveryone':
return StoryPrivacySettingsEveryone.fromMap(_map);
case 'storyPrivacySettingsCloseFriends':
return StoryPrivacySettingsCloseFriends.fromMap(_map);
case 'storyPrivacySettingsContacts':
return StoryPrivacySettingsContacts.fromMap(_map);
case 'storyPrivacySettingsSelectedUsers':
return StoryPrivacySettingsSelectedUsers.fromMap(_map);
case null:
default:
return null;
}
}