fromJson static method
Implementation
static RestrictionInfo? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return RestrictionInfo(
restrictionReason: (json['restriction_reason'] as String?) ?? '',
hasSensitiveContent: (json['has_sensitive_content'] as bool?) ?? false,
);
}