// // CommonKey.swift // // // Created by Juraldinio on 11/25/22. // import Foundation public struct CommonKey: RawRepresentable, Hashable { public var rawValue: String public init?(rawValue: String) { self.rawValue = rawValue } public init(_ rawValue: String) { self.rawValue = rawValue } public func with(_ suffix: String) -> Self { .init(rawValue + "." + suffix) } public static func key(_ key: String) -> Self { .init(key) } public static func key(_ key: String, suffix: String) -> Self { Self.key(key).with(suffix) } }