ChatJoinRequest.fromJson constructor
Creates a new ChatJoinRequest object from json.
Implementation
factory ChatJoinRequest.fromJson(Map<String, dynamic> json) {
return ChatJoinRequest(
chat: Chat.fromJson(json['chat']),
from: User.fromJson(json['from']),
date: json['date'],
bio: json['bio'],
inviteLink: json['invite_link'] == null
? null
: ChatInviteLink.fromJson(json['invite_link']),
userChatId: json['user_chat_id'],
);
}