UserPrivacySettingRule.fromJson constructor
Parses whichever UserPrivacySettingRule subtype the JSON describes.
Implementation
factory UserPrivacySettingRule.fromJson(Map<String, dynamic> json) {
final object = tdObjectFactories[json['@type']]?.call(json);
return object is UserPrivacySettingRule
? object
: UndecodedUserPrivacySettingRule(json);
}