Files
2025-10-02 20:13:20 -04:00

41 lines
1.0 KiB
Swift

//
// TextContent.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
#if canImport(AnyCodable)
import AnyCodable
#endif
public struct TextContent: Codable, JSONEncodable, Hashable {
public var meta: [String: AnyCodable]?
public var annotations: EmbeddedResourceAnnotations?
public var text: String
public init(meta: [String: AnyCodable]? = nil, annotations: EmbeddedResourceAnnotations? = nil, text: String) {
self.meta = meta
self.annotations = annotations
self.text = text
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case meta = "_meta"
case annotations
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.encodeIfPresent(annotations, forKey: .annotations)
try container.encode(text, forKey: .text)
}
}