ChatPermissions.fromJson constructor
Creates a new ChatPermissions object from json String.
Implementation
factory ChatPermissions.fromJson(Map<String, dynamic> json) {
return ChatPermissions(
canSendMessages: json['can_send_messages'],
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'],
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'],
);
}