ChatAdministratorRights.fromJson constructor
Parse from a json
Implementation
factory ChatAdministratorRights.fromJson(Map<String, dynamic> json) =>
ChatAdministratorRights(
canManageChat: json['can_manage_chat'],
canChangeInfo: json['can_change_info'],
canPostMessages: json['can_post_messages'],
canEditMessages: json['can_edit_messages'],
canDeleteMessages: json['can_delete_messages'],
canInviteUsers: json['can_invite_users'],
canRestrictMembers: json['can_restrict_members'],
canPinMessages: json['can_pin_messages'],
canManageTopics: json['can_manage_topics'],
canPromoteMembers: json['can_promote_members'],
canManageVideoChats: json['can_manage_video_chats'],
isAnonymous: json['is_anonymous'],
);