---
title: "init(from:)"
framework: cryptotokenkit
role: symbol
role_heading: Initializer
path: "cryptotokenkit/tktlvrecord/init(from:)"
---

# init(from:)

Creates and returns a TLV record from by parsing the specified data.

## Declaration

```swift
convenience init?(from data: Data)
```

## Parameters

- `data`: A data object containing the serialized representation of a TLV record.

## Return Value

Return Value A TLV record, or nil if data does not specify a valid record.

## See Also

### Creating Records

- [sequenceOfRecords(from:)](cryptotokenkit/tktlvrecord/sequenceofrecords(from:).md)
