UIModelDataContent

public struct UIModelDataContent : Decodable
extension UIModelDataContent: ObjectMessageData
extension UIModelDataContent: CarouselItemMessageData, CardMessageData

Holds the content for a specific UIModelData. Properties will be filled based on UIModelData type.

  • id

    Required by ObjectMessageData. Generated GUID on client-side. Read-only.

    Declaration

    Swift

    public let id: String
  • Undocumented

    Declaration

    Swift

    public var text: String?
  • Undocumented

    Declaration

    Swift

    public var total: Int?
  • Undocumented

    Declaration

    Swift

    public var upperBoundText: String?
  • Undocumented

    Declaration

    Swift

    public var list: [UIModelDataContent]?
  • Undocumented

    Declaration

    Swift

    public var form: [UIModelDataValue]?
  • Undocumented

    Declaration

    Swift

    public var picture: UIModelDataMedia?
  • Undocumented

    Declaration

    Swift

    public var video: UIModelDataMedia?
  • Undocumented

    Declaration

    Swift

    public var header: UIModelDataHeader?
  • Undocumented

    Declaration

    Swift

    public var buttons: [UIModelDataAction]?
  • Undocumented

    Declaration

    Swift

    public var sections: [UIModelDataSection]?
  • Undocumented

    Declaration

    Swift

    public var carousel: [UIModelDataContent]?
  • removed elements where label/value are nil

    Declaration

    Swift

    public var filteredForm: [UIModelDataValue]? { get }
  • Undocumented

    Declaration

    Swift

    public init()
  • Declaration

    Swift

    public init(from decoder: Decoder) throws

Extensions for UI Message Data protocols