ChatMessageResponse class
- Available extensions
- Annotations
-
- @JsonSerializable(explicitToJson: true)
Constructors
-
ChatMessageResponse.new({int? id, String? message, DateTime? createdAt, UserViewModel? user, List<
ChatMessageAttachmentViewModel> ? attachments, List<ChatMessageReadMarkerViewModel> ? readMarkers}) -
ChatMessageResponse.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
attachments
→ List<
ChatMessageAttachmentViewModel> ? -
final
- createdAt → DateTime?
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → int?
-
final
- message → String?
-
final
-
readMarkers
→ List<
ChatMessageReadMarkerViewModel> ? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- user → UserViewModel?
-
final
Methods
-
copyWith(
{int? id, String? message, DateTime? createdAt, UserViewModel? user, List< ChatMessageAttachmentViewModel> ? attachments, List<ChatMessageReadMarkerViewModel> ? readMarkers}) → ChatMessageResponse -
Available on ChatMessageResponse, provided by the $ChatMessageResponseExtension extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator.
override
Constants
-
fromJsonFactory
→ const ChatMessageResponse Function(Map<
String, dynamic> json) -
toJsonFactory
→ const Map<
String, dynamic> Function(ChatMessageResponse instance)