RoomUser class
Creates a RoomUser instance.
The powerLevel field represents the power level of the room user. The moderator field indicates whether the room user is a moderator or not. The roomUser field represents the user associated with the room.
- Annotations
-
- @Freezed(makeCollectionsUnmodifiable: false)
Constructors
- RoomUser({@JsonKey(name: 'power_level') int? powerLevel, @JsonKey(name: 'moderator') bool? moderator, @JsonKey(name: 'room_user') User? roomUser})
-
factory
-
RoomUser.fromJson(Map<
String, dynamic> json) -
Creates a RoomUser instance from a JSON map.
factory
- RoomUser.initial()
-
Creates an initial RoomUser instance.
factory
Properties
-
copyWith
→ $RoomUserCopyWith<
RoomUser> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- moderator → bool?
-
no setterinherited
- powerLevel → int?
-
no setterinherited
- roomUser → User?
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited