UserStatusInfo class
Thông tin trạng thái người dùng
Constructors
- UserStatusInfo({required String userId, required UserStatusType type, String? customMessage, required int lastSeenAt, bool needsUpdate = false})
-
UserStatusInfo.fromJson(Map<
String, dynamic> json) -
Tạo đối tượng từ dữ liệu JSON
factory
Properties
- customMessage → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastSeenAt → int
-
final
- needsUpdate → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → UserStatusType
-
final
- userId → String
-
final
Methods
-
copyWith(
{UserStatusType? type, String? customMessage, int? lastSeenAt, bool? needsUpdate}) → UserStatusInfo - Tạo bản sao với các thay đổi
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Chuyển đổi sang JSON để gửi đến server
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited