ChatMember.fromJson constructor

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

Parse from a json

Implementation

factory ChatMember.fromJson(Map<String, dynamic> json) => ChatMember(
  memberId: MessageSender.fromJson(json['member_id']),
  inviterUserId: json['inviter_user_id'],
  joinedChatDate: json['joined_chat_date'],
  status: ChatMemberStatus.fromJson(json['status']),
  extra: json['@extra'],
  clientId: json['@client_id'],
);