# ChannelMetadata Structure

    public struct ChannelMetadata : Decodable

UI metadata displayed for channel-based playback experiences.

### Lifecycle

- `init(mainTitle:subTitle:artworkImage:channelDescription:)`

  Creates channel metadata values directly.

  #### Declaration

  Swift

      public init(
          mainTitle: String?,
          subTitle: String?,
          artworkImage: String?,
          channelDescription: String?)

  #### Parameters

  `mainTitle` | Primary title text.
  `subTitle` | Secondary title text.
  `artworkImage` | Artwork resource name or URL string.
  `channelDescription` | Long-form description text.

- `init(from:)`

  Creates channel metadata by decoding a JSON string.

  #### Declaration

  Swift

      public init?(from json: String)

  #### Parameters

  `json` | JSON payload containing channel metadata fields.

### Public

- `mainTitle`

  The main title of the channel.

  #### Declaration

  Swift

      public var mainTitle: String?

- `subTitle`

  The subtitle of the channel.

  #### Declaration

  Swift

      public var subTitle: String?

- `artworkImage`

  The artwork image of the channel. Use either a custom image resource name or URL of an image file.

  #### Declaration

  Swift

      public var artworkImage: String?

- `channelDescription`

  The description of the channel.

  #### Declaration

  Swift

      public var channelDescription: String?