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

41 lines
988 B
Swift

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