---
title: "init(from:)"
framework: roomplan
role: symbol
role_heading: Initializer
path: "roomplan/capturedroom/init(from:)"
---

# init(from:)

Creates a captured room by deserializing the decoder of a previously captured room.

## Declaration

```swift
init(from decoder: any Decoder) throws
```

## Parameters

- `decoder`: An encoded captured room object.
