mirror of
https://github.com/block/goose.git
synced 2026-07-17 12:56:20 +02:00
41 lines
945 B
Swift
41 lines
945 B
Swift
//
|
|
// Icon.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
#if canImport(AnyCodable)
|
|
import AnyCodable
|
|
#endif
|
|
|
|
public struct Icon: Codable, JSONEncodable, Hashable {
|
|
|
|
public var mimeType: String?
|
|
public var sizes: String?
|
|
public var src: String
|
|
|
|
public init(mimeType: String? = nil, sizes: String? = nil, src: String) {
|
|
self.mimeType = mimeType
|
|
self.sizes = sizes
|
|
self.src = src
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case mimeType
|
|
case sizes
|
|
case src
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(mimeType, forKey: .mimeType)
|
|
try container.encodeIfPresent(sizes, forKey: .sizes)
|
|
try container.encode(src, forKey: .src)
|
|
}
|
|
}
|
|
|