RestrictionInfo.fromJson constructor

RestrictionInfo.fromJson(
  1. Map<String, dynamic> json
)

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']),
    );