UserPrivacySettingRule.fromJson constructor
a UserPrivacySettingRule return type can be :
Implementation
factory UserPrivacySettingRule.fromJson(Map<String, dynamic> json)  {
  switch(json["@type"]) {
    case UserPrivacySettingRuleAllowAll.CONSTRUCTOR:
      return UserPrivacySettingRuleAllowAll.fromJson(json);
    case UserPrivacySettingRuleAllowContacts.CONSTRUCTOR:
      return UserPrivacySettingRuleAllowContacts.fromJson(json);
    case UserPrivacySettingRuleAllowUsers.CONSTRUCTOR:
      return UserPrivacySettingRuleAllowUsers.fromJson(json);
    case UserPrivacySettingRuleAllowChatMembers.CONSTRUCTOR:
      return UserPrivacySettingRuleAllowChatMembers.fromJson(json);
    case UserPrivacySettingRuleRestrictAll.CONSTRUCTOR:
      return UserPrivacySettingRuleRestrictAll.fromJson(json);
    case UserPrivacySettingRuleRestrictContacts.CONSTRUCTOR:
      return UserPrivacySettingRuleRestrictContacts.fromJson(json);
    case UserPrivacySettingRuleRestrictUsers.CONSTRUCTOR:
      return UserPrivacySettingRuleRestrictUsers.fromJson(json);
    case UserPrivacySettingRuleRestrictChatMembers.CONSTRUCTOR:
      return UserPrivacySettingRuleRestrictChatMembers.fromJson(json);
    default:
      return const UserPrivacySettingRule();
  }
}