GroupRoom.from constructor

GroupRoom.from(
  1. Room room, {
  2. String? name,
  3. String? photo,
})

Implementation

factory GroupRoom.from(Room room, {String? name, String? photo}) {
  return GroupRoom(
    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,
    name: name,
    photo: photo,
  );
}