Files
goose/api_clients/swift/GooseAPI/Classes/OpenAPIs/Models/MessageContentOneOf7.swift
2025-10-02 20:13:20 -04:00

40 lines
902 B
Swift

//
// MessageContentOneOf7.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
#if canImport(AnyCodable)
import AnyCodable
#endif
public struct MessageContentOneOf7: Codable, JSONEncodable, Hashable {
public enum ModelType: String, Codable, CaseIterable {
case redactedthinking = "redactedThinking"
}
public var data: String
public var type: ModelType
public init(data: String, type: ModelType) {
self.data = data
self.type = type
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case data
case type
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encode(data, forKey: .data)
try container.encode(type, forKey: .type)
}
}