StoryPrivacySettings.fromJson constructor
a StoryPrivacySettings return type can be :
Implementation
factory StoryPrivacySettings.fromJson(Map<String, dynamic> json) {
switch (json["@type"]) {
case StoryPrivacySettingsEveryone.CONSTRUCTOR:
return StoryPrivacySettingsEveryone.fromJson(json);
case StoryPrivacySettingsContacts.CONSTRUCTOR:
return StoryPrivacySettingsContacts.fromJson(json);
case StoryPrivacySettingsCloseFriends.CONSTRUCTOR:
return StoryPrivacySettingsCloseFriends.fromJson(json);
case StoryPrivacySettingsSelectedContacts.CONSTRUCTOR:
return StoryPrivacySettingsSelectedContacts.fromJson(json);
default:
return const StoryPrivacySettings();
}
}