Invite.from constructor

Invite.from(
  1. Snowflake guildId,
  2. 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']
);