ChatMessageModel class
Constructors
- ChatMessageModel(String message, {DateTime? createdAt, bool read = false, DateTime? seenAt, ChatMessageStatus status = ChatMessageStatus.unknown, String? reference})
- ChatMessageModel.fromJson(Map jsonMap)
-
factory
- ChatMessageModel.fromJsonString(String jsonString)
-
factory
Properties
- createdAt ↔ DateTime?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ int
-
latefinal
- message → String
-
final
- read ↔ bool
-
getter/setter pair
- reference ↔ String?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seenAt ↔ DateTime?
-
getter/setter pair
- status ↔ ChatMessageStatus
-
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
statusToString(
) → dynamic -
toDbJson(
{List< String> excepts = const []}) → Map<String, Object?> -
toJson(
{List< String> excepts = const []}) → Map<String, Object?> -
toJsonString(
) → dynamic -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited