    extension Money : AutomationValue, Copyable, Equatable, Escapable, Hashable, Sendable, SendableMetatype, StructDataRepresentable

- `


  ### [init(decoder:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Extensions/Money#/s:13GoogleHomeSDK5MoneyV0aB5TypesE7decoderAcA12TraitDecoderV_tKcfc)


  ` Initializes a `Money` object from a `Google_Type_Money` proto.

  #### Declaration

  Swift

      init(decoder: TraitDecoder) throws

- `


  ### [encode(with:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Extensions/Money#/s:13GoogleHomeSDK5MoneyV0aB5TypesE6encode4withyAA12TraitEncoderC_tKF)


  ` Returns a `Google_Type_Money` proto representation of the `Money` object.

  #### Declaration

  Swift

      func encode(with encoder: TraitEncoder) throws