// // AllergiesSectionAllOf.swift // // Generated by openapi-generator // https://openapi-generator.tech // import Foundation #if canImport(AnyCodable) import AnyCodable #endif public struct AllergiesSectionAllOf: Codable, Hashable { public enum AllergicPredispositionOfChild: String, Codable, CaseIterable { case nopredisposition = "noPredisposition" case singlepredisposition = "singlePredisposition" case doublepredisposition = "doublePredisposition" } public var allergiesOfMother: String? public var allergicPredispositionOfChild: AllergicPredispositionOfChild? public init(allergiesOfMother: String? = nil, allergicPredispositionOfChild: AllergicPredispositionOfChild? = nil) { self.allergiesOfMother = allergiesOfMother self.allergicPredispositionOfChild = allergicPredispositionOfChild } public enum CodingKeys: String, CodingKey, CaseIterable { case allergiesOfMother case allergicPredispositionOfChild } // Encodable protocol methods public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) try container.encodeIfPresent(allergiesOfMother, forKey: .allergiesOfMother) try container.encodeIfPresent(allergicPredispositionOfChild, forKey: .allergicPredispositionOfChild) } }