# CommandResponse

    protocol CommandResponse : Sendable

A protocol for the response of a Matter command.
- `


  ### [init(decoder:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/CommandResponse#/s:13GoogleHomeSDK15CommandResponseP7decoderxAA12TraitDecoderV_tKcfc)


  ` Creates a new ClusterResponse 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 Response. |