MessageModel class

Annotations
  • @freezed

Constructors

MessageModel({int? id, String? messages, @JsonKey(name: 'sender_id') int? senderId, @JsonKey(name: 'receive_id') int? receiveId, int? read, @JsonKey(name: 'created_at') DateTime? createdAt, @JsonKey(name: 'updated_at') DateTime? updatedAt, @JsonKey(name: 'deleted_at') dynamic deletedAt, @JsonKey(name: 'chat_user_id') int? chatUserId, @JsonKey(name: 'sender_name') String? senderName, @JsonKey(name: 'receive_name') dynamic receiveName, @JsonKey(name: 'image') String? image, @JsonKey(name: 'data_type') String? dataType, @JsonKey(name: 'file_type') String? fileType, @JsonKey(name: 'file_size') int? fileSize, @JsonKey(name: 'file_url') String? fileUrl})
factory
MessageModel.fromJson(Map<String, dynamic> json)
factory

Properties

chatUserId int?
no setterinherited
copyWith → $MessageModelCopyWith<MessageModel>
no setterinherited
createdAt DateTime?
no setterinherited
dataType String?
no setterinherited
deletedAt → dynamic
no setterinherited
fileSize int?
no setterinherited
fileType String?
no setterinherited
fileUrl String?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id int?
no setterinherited
image String?
no setterinherited
messages String?
no setterinherited
read int?
no setterinherited
receiveId int?
no setterinherited
receiveName → dynamic
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
senderId int?
no setterinherited
senderName String?
no setterinherited
updatedAt DateTime?
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