TeamMember class

Annotations
  • @JsonSerializable(includeIfNull: false)

Constructors

TeamMember({required MembershipState membershipState, required List<String> permissions, required String teamId, required User user})
Constructor
TeamMember.fromJson(Map<String, dynamic> json)
From json
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
membershipState MembershipState
the user's membership state on the team
final
permissions List<String>
will always be "*"
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
teamId String
the id of the parent team of which they are a member
final
user User
the avatar, discriminator, id, and username of the user
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
To json
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited