fromJson static method
Implementation
static InviteCreateEvent fromJson(Map<String, dynamic> json) {
return InviteCreateEvent(
channelId: json['channel_id'],
code: json['code'],
timestamp: json['timestamp'],
guildId: json['guild_id'],
inviter: ifNotNull(User.fromJson, json['inviter']),
maxAge: json['max_age'],
maxUses: json['max_uses'],
targetUser: ifNotNull(User.fromJson, json['target_user']),
targetUserType: json['target_user_type'],
temporary: json['temporary'],
uses: json['uses'],
);
}