    struct LightingCurveConfig

Configuration parameters for a lighting curve.
- `


  ### [structField(id:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/LightingCurveTrait/LightingCurveConfig#/s:15GoogleHomeTypes0A0O18LightingCurveTraitV0dE6ConfigV11structField2id0aB3SDK0I0_pSgs6UInt32V_tFZ)


  ` Returns the field corresponding to the given field ID.

  #### Declaration

  Swift

      static func structField(id: UInt32) -> (any Field)?

- `


  ### [curvePointsArray](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/LightingCurveTrait/LightingCurveConfig#/s:15GoogleHomeTypes0A0O18LightingCurveTraitV0dE6ConfigV16curvePointsArraySayAE0E5PointVGvp)


  ` The sequence of points defining the curve.

  #### Declaration

  Swift

      let curvePointsArray: [https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/LightingCurveTrait.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/LightingCurveTrait/CurvePoint.html]

- `


  ### [roomId](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/LightingCurveTrait/LightingCurveConfig#/s:15GoogleHomeTypes0A0O18LightingCurveTraitV0dE6ConfigV6roomIdSSSgvp)


  ` The ID of the target room. For example, 'room@{uuid}'.

  #### Declaration

  Swift

      let roomId: String?

- `


  ### [devices](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/LightingCurveTrait/LightingCurveConfig#/s:15GoogleHomeTypes0A0O18LightingCurveTraitV0dE6ConfigV7devicesAE13TargetDevicesVSgvp)


  ` The target devices to apply the lighting curve setting.

  #### Declaration

  Swift

      let devices: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/LightingCurveTrait.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/LightingCurveTrait/TargetDevices.html?

- `


  ### [daysOfWeekArray](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/LightingCurveTrait/LightingCurveConfig#/s:15GoogleHomeTypes0A0O18LightingCurveTraitV0dE6ConfigV15daysOfWeekArraySay10Foundation6LocaleV7WeekdayOGvp)


  ` The days of the week on which the lighting curve should run.

  #### Declaration

  Swift

      let daysOfWeekArray: [Locale.Weekday]

- `


  ### [adaptive](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/LightingCurveTrait/LightingCurveConfig#/s:15GoogleHomeTypes0A0O18LightingCurveTraitV0dE6ConfigV8adaptiveSbSgvp)


  ` True if this is an adaptive lighting curve.

  #### Declaration

  Swift

      let adaptive: Bool?

- `


  ### [enabled](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/LightingCurveTrait/LightingCurveConfig#/s:15GoogleHomeTypes0A0O18LightingCurveTraitV0dE6ConfigV7enabledSbSgvp)


  ` True if the lighting curve is enabled.

  #### Declaration

  Swift

      let enabled: Bool?

- `


  ### [init(decoder:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/LightingCurveTrait/LightingCurveConfig#/s:15GoogleHomeTypes0A0O18LightingCurveTraitV0dE6ConfigV7decoderAG0aB3SDK0F7DecoderV_tKcfc)


  ` Creates a new Struct instance using data read from the given `TraitDecoder`.
  Throws
  `HomeError.parseError` when parsing fails.

  #### Declaration

  Swift

      init(decoder: TraitDecoder) throws

  #### Parameters

  |---|---|
  | ` decoder ` | The raw data representing this Struct. |

- `


  ### [encode(with:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/LightingCurveTrait/LightingCurveConfig#/s:15GoogleHomeTypes0A0O18LightingCurveTraitV0dE6ConfigV6encode4withy0aB3SDK0F7EncoderC_tKF)


  ` Writes this Struct to the given `TraitEncoder`.
  Throws `HomeError.parseError` if the data could not be encoded.

  #### Declaration

  Swift

      func encode(with encoder: TraitEncoder) throws