ChatMemberStatusAdministrator.fromJson constructor

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

Parse from a json

Implementation

ChatMemberStatusAdministrator.fromJson(Map<String, dynamic> json) {
  this.customTitle = json['custom_title'];
  this.canBeEdited = json['can_be_edited'];
  this.canChangeInfo = json['can_change_info'];
  this.canPostMessages = json['can_post_messages'];
  this.canEditMessages = json['can_edit_messages'];
  this.canDeleteMessages = json['can_delete_messages'];
  this.canInviteUsers = json['can_invite_users'];
  this.canRestrictMembers = json['can_restrict_members'];
  this.canPinMessages = json['can_pin_messages'];
  this.canPromoteMembers = json['can_promote_members'];
}