RestrictionInfo.fromJson constructor
Parses a RestrictionInfo from TDLib JSON.
Implementation
factory RestrictionInfo.fromJson(Map<String, dynamic> json) =>
RestrictionInfo(
restrictionReason: _readString(json['restriction_reason']),
hasSensitiveContent: _readBool(json['has_sensitive_content']),
);