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

37 lines
823 B
Swift

//
// RawTextContent.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
#if canImport(AnyCodable)
import AnyCodable
#endif
public struct RawTextContent: Codable, JSONEncodable, Hashable {
public var meta: [String: AnyCodable]?
public var text: String
public init(meta: [String: AnyCodable]? = nil, text: String) {
self.meta = meta
self.text = text
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case meta = "_meta"
case text
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(meta, forKey: .meta)
try container.encode(text, forKey: .text)
}
}