// // AssistedFertilizationSectionAllOf.swift // // Generated by openapi-generator // https://openapi-generator.tech // import Foundation #if canImport(AnyCodable) import AnyCodable #endif public struct AssistedFertilizationSectionAllOf: Codable, Hashable { public enum ModelType: String, Codable, CaseIterable { case spontaneous = "spontaneous" case ovulationInductionIvf = "ovulation_induction_ivf" case ivf = "ivf" case icsi = "icsi" case hormoneTherapy = "hormone_therapy" case insemination = "insemination" case eggDonation = "egg_donation" case unknown = "unknown" } public var remarks: String? public var type: ModelType? public init(remarks: String? = nil, type: ModelType? = nil) { self.remarks = remarks self.type = type } public enum CodingKeys: String, CodingKey, CaseIterable { case remarks case type } // Encodable protocol methods public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) try container.encodeIfPresent(remarks, forKey: .remarks) try container.encodeIfPresent(type, forKey: .type) } }