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

# init(from:)

Creates captured room data by deserializing the decoder of a prior scan.

## Declaration

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

## Parameters

- `decoder`: An encoded captured room data object.

## Discussion

Discussion To serialize a scan, call encode(to:).
