ChatEventMemberRestricted.fromJson constructor

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

Parse from a json

Implementation

factory ChatEventMemberRestricted.fromJson(Map<String, dynamic> json) => ChatEventMemberRestricted(
  memberId: MessageSender.fromJson(json['member_id']),
  oldStatus: ChatMemberStatus.fromJson(json['old_status']),
  newStatus: ChatMemberStatus.fromJson(json['new_status']),
);