DirectRoom.from constructor
DirectRoom.from(
- Room room
Implementation
factory DirectRoom.from(Room room) {
return DirectRoom(
archives: room.archives,
blocks: room.blocks,
createdAt: room.createdAt,
createdBy: room.createdBy,
extra: room.extra,
id: room.id,
isBot: room.isBot,
isDeleted: room.isDeleted,
isLocal: room.isLocal,
isVerified: room.isVerified,
lastMessage: room.lastMessage,
lastMessageDeleted: room.lastMessageDeleted,
lastMessageId: room.lastMessageId,
lastMessageSenderId: room.lastMessageSenderId,
lastMessageStatuses: room.lastMessageStatuses,
leaves: room.leaves,
mutes: room.mutes,
participants: room.participants,
pins: room.pins,
removes: room.removes,
restricts: room.restricts,
unseenCounts: room._unseenCounts,
updatedAt: room.updatedAt,
);
}