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