    struct NodeNotificationPayload

    extension NodeNotificationPayload : https://developers.home.google.com/reference/swift/GoogleHomeSDK/GoogleHomeSDK.html#/s:13GoogleHomeSDK15AutomationValueP, Equatable, Hashable, Sendable, SendableMetatype, https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/StructDataRepresentable.html

Represents the object data in a notification.

Maps to `ObjectData` in `interaction_api.proto`.
- `


  ### [id](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/NodeNotificationPayload#/s:13GoogleHomeSDK23NodeNotificationPayloadV2idSSvp)


  ` Undocumented

  #### Declaration

  Swift

      let id: String

- `


  ### [contents](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/NodeNotificationPayload#/s:13GoogleHomeSDK23NodeNotificationPayloadV8contentsSayAA05TraitF0VGvp)


  ` Undocumented

  #### Declaration

  Swift

      let contents: [https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/TraitPayload.html]

- `


  ### [useTimedInteraction](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/NodeNotificationPayload#/s:13GoogleHomeSDK23NodeNotificationPayloadV19useTimedInteractionSbvp)


  ` Undocumented

  #### Declaration

  Swift

      let useTimedInteraction: Bool

- `


  ### [init(id:contents:useTimedInteraction:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/NodeNotificationPayload#/s:13GoogleHomeSDK23NodeNotificationPayloadV2id8contents19useTimedInteractionACSS_SayAA05TraitF0VGSbtcfc)


  ` Undocumented

  #### Declaration

  Swift

      init(id: String = "", contents: [https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/TraitPayload.html] = [], useTimedInteraction: Bool = false)

- `


  ### [init(decoder:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/NodeNotificationPayload#/s:13GoogleHomeSDK23NodeNotificationPayloadV7decoderAcA12TraitDecoderV_tKcfc)


  ` Creates a new Struct instance using data read from the given `https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/TraitDecoder.html`.
  Throws
  `HomeError.parseError` when parsing fails.

  #### Declaration

  Swift

      init(decoder: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/TraitDecoder.html) throws

  #### Parameters

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

- `


  ### [encode(with:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/NodeNotificationPayload#/s:13GoogleHomeSDK23NodeNotificationPayloadV6encode4withyAA12TraitEncoderC_tKF)


  ` Writes this Struct to the given `https://developers.home.google.com/reference/swift/GoogleHomeSDK/Classes/TraitEncoder.html`.
  Throws `HomeError.parseError` if the data could not be encoded.

  #### Declaration

  Swift

      func encode(with encoder: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Classes/TraitEncoder.html) throws