Invite.from constructor
Invite.from(
- Snowflake guildId,
- dynamic payload
Implementation
factory Invite.from(Snowflake guildId, dynamic payload) => Invite(
payload['type'],
payload['uses'],
payload['temporary'],
payload['max_uses'],
payload['max_age'],
payload['inviter']?['id'],
payload['target_user']?['id'],
guildId,
payload['expires_at'],
payload['created_at'],
payload['code'],
payload['channel_id'],
payload['target_type']
);