ChatPermissions.fromJson constructor
Parse from a json
Implementation
factory ChatPermissions.fromJson(Map<String, dynamic> json) =>
ChatPermissions(
canSendBasicMessages: json['can_send_basic_messages'],
canSendAudios: json['can_send_audios'],
canSendDocuments: json['can_send_documents'],
canSendPhotos: json['can_send_photos'],
canSendVideos: json['can_send_videos'],
canSendVideoNotes: json['can_send_video_notes'],
canSendVoiceNotes: json['can_send_voice_notes'],
canSendPolls: json['can_send_polls'],
canSendOtherMessages: json['can_send_other_messages'],
canAddWebPagePreviews: json['can_add_web_page_previews'],
canChangeInfo: json['can_change_info'],
canInviteUsers: json['can_invite_users'],
canPinMessages: json['can_pin_messages'],
canManageTopics: json['can_manage_topics'],
);