Member class

The class that contains the information about the user membership in a channel

Annotations

Constructors

Member({User user, DateTime inviteAcceptedAt, DateTime inviteRejectedAt, bool invited, String role, String userId, bool isModerator, DateTime createdAt, DateTime updatedAt})
Constructor used for json serialization
Member.fromJson(Map<String, dynamic> json)
Create a new instance from a json
factory

Properties

createdAt DateTime
The date of creation
final
hashCode int
The hash code for this object. [...]
read-only, inherited
inviteAcceptedAt DateTime
The date in which the user accepted the invite to the channel
final
invited bool
True if the user has been invited to the channel
final
inviteRejectedAt DateTime
The date in which the user rejected the invite to the channel
final
isModerator bool
True if the user is a moderator of the channe;
final
role String
The role of the user in the channel
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
updatedAt DateTime
The last date of update
final
user User
The interested user
final
userId String
The id of the interested user
final

Methods

copyWith({User user, DateTime inviteAcceptedAt, DateTime inviteRejectedAt, bool invited, String role, String userId, bool isModerator, DateTime createdAt, DateTime updatedAt}) Member
Creates a copy of Member with specified attributes overridden.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
Serialize to json
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited