// // BodyMeasuresSection.swift // // Generated by openapi-generator // https://openapi-generator.tech // import Foundation #if canImport(AnyCodable) import AnyCodable #endif public struct BodyMeasuresSection: Codable, Hashable { public var modifiedTime: Date? public var author: HealthCareOrganization? public var dirty: Bool? public var prenatalBodyWeight: IntegerValueWithUnitEnum? public var bodyHeight: IntegerValueWithUnitEnum? public var bodyMassIndex: DoubleValueWithUnitEnum? public init(modifiedTime: Date? = nil, author: HealthCareOrganization? = nil, dirty: Bool? = nil, prenatalBodyWeight: IntegerValueWithUnitEnum? = nil, bodyHeight: IntegerValueWithUnitEnum? = nil, bodyMassIndex: DoubleValueWithUnitEnum? = nil) { self.modifiedTime = modifiedTime self.author = author self.dirty = dirty self.prenatalBodyWeight = prenatalBodyWeight self.bodyHeight = bodyHeight self.bodyMassIndex = bodyMassIndex } public enum CodingKeys: String, CodingKey, CaseIterable { case modifiedTime case author case dirty case prenatalBodyWeight case bodyHeight case bodyMassIndex } // Encodable protocol methods public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) try container.encodeIfPresent(modifiedTime, forKey: .modifiedTime) try container.encodeIfPresent(author, forKey: .author) try container.encodeIfPresent(dirty, forKey: .dirty) try container.encodeIfPresent(prenatalBodyWeight, forKey: .prenatalBodyWeight) try container.encodeIfPresent(bodyHeight, forKey: .bodyHeight) try container.encodeIfPresent(bodyMassIndex, forKey: .bodyMassIndex) } }