ChatMemberStatusAdministrator.fromJson constructor

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

Parse from a json

Implementation

factory ChatMemberStatusAdministrator.fromJson(Map<String, dynamic> json) => ChatMemberStatusAdministrator(
  customTitle: json['custom_title'],
  canBeEdited: json['can_be_edited'],
  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'],
  canPromoteMembers: json['can_promote_members'],
  canManageVideoChats: json['can_manage_video_chats'],
  isAnonymous: json['is_anonymous'],
);