---
title: "init(rawValue:)"
framework: intents
role: symbol
role_heading: Initializer
path: "intents/incar/chargingconnectortype/init(rawvalue:)"
---

# init(rawValue:)

Creates a charging connector type using the provided string.

## Declaration

```swift
init(rawValue: String)
```

## Parameters

- `rawValue`: The charging connector type’s string representation.

## Discussion

Discussion If there isn’t a value of the type that corresponds to the specified rawValue, this initializer returns nil.
