VanityInvite.from constructor

VanityInvite.from(
  1. Map<String, dynamic> payload
)

Implementation

factory VanityInvite.from(Map<String, dynamic> payload) {
  return VanityInvite(
    code: payload['code'],
    uses: payload['uses'],
  );
}