ChatPermissions.fromJson constructor
Parse from a json
Implementation
factory ChatPermissions.fromJson(Map<String, dynamic> json) => ChatPermissions(
canSendMessages: json['can_send_messages'],
canSendMediaMessages: json['can_send_media_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'],
);