ChatEventHasProtectedContentToggled.fromJson constructor

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

Parses a ChatEventHasProtectedContentToggled from TDLib JSON.

Implementation

factory ChatEventHasProtectedContentToggled.fromJson(
        Map<String, dynamic> json) =>
    ChatEventHasProtectedContentToggled(
      hasProtectedContent: _readBool(json['has_protected_content']),
    );