// Generated using Sourcery 1.9.2 — https://github.com/krzysztofzablocki/Sourcery
// DO NOT EDIT
import Foundation

extension HelpWidget.Data {
        enum CodingKeys: String, CodingKey {
            case tag = "tag"
        }

        init(from decoder: Decoder) throws {
            let container: KeyedDecodingContainer<HelpWidget.Data.CodingKeys> = try decoder.container(keyedBy: HelpWidget.Data.CodingKeys.self)
            self.tag = try container.decode(String?.self, forKey: Self.CodingKeys.tag)
        }
}
extension TextWidget.Data {
        enum CodingKeys: String, CodingKey {
            case text = "text"
            case highlight = "highlight"
        }

        init(from decoder: Decoder) throws {
            let container: KeyedDecodingContainer<TextWidget.Data.CodingKeys> = try decoder.container(keyedBy: TextWidget.Data.CodingKeys.self)
            self.text = try container.decode(String.self, forKey: Self.CodingKeys.text)
            self.highlight = try container.decodeIfPresent(Bool.self, forKey: Self.CodingKeys.highlight) ?? false
        }
}
extension TimerWidget.Data {
        enum CodingKeys: String, CodingKey {
            case date = "date"
        }

        init(from decoder: Decoder) throws {
            let container: KeyedDecodingContainer<TimerWidget.Data.CodingKeys> = try decoder.container(keyedBy: TimerWidget.Data.CodingKeys.self)
            self.date = try container.decode(Date.self, forKey: Self.CodingKeys.date)
        }
}
