---
title: generatedContent
framework: foundationmodels
role: symbol
role_heading: Instance Property
path: foundationmodels/convertibletogeneratedcontent/generatedcontent
---

# generatedContent

This instance represented as generated content.

## Declaration

```swift
var generatedContent: GeneratedContent { get }
```

## Discussion

Discussion Conformance to this protocol is provided by the @Generable macro. A manual implementation may be used to map values onto properties using different names. Use the generated content property as shown below, to manually return a new GeneratedContent with the properties you specify. struct Person: ConvertibleToGeneratedContent {    var name: String    var age: Int

var generatedContent: GeneratedContent {        GeneratedContent(properties: [            "firstName": name,            "ageInYears": age        ])    } } important: If your type also conforms to ConvertibleFromGeneratedContent, it is critical that this implementation be symmetrical with init(_:).
