ChatActionBarReportSpam.fromJson constructor

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

Parses a ChatActionBarReportSpam from TDLib JSON.

Implementation

factory ChatActionBarReportSpam.fromJson(Map<String, dynamic> json) =>
    ChatActionBarReportSpam(
      canUnarchive: _readBool(json['can_unarchive']),
    );