func decodeMixinForKey()

in Sources/SymbolKit/SymbolGraph/Relationship/Relationship.swift [65:74]


        func decodeMixinForKey(_ key: CodingKeys, from container: KeyedDecodingContainer<CodingKeys>) throws -> Mixin? {
            switch key {
            case .swiftConstraints:
                return try container.decode(Swift.GenericConstraints.self, forKey: key)
            case .sourceOrigin:
                return try container.decode(SourceOrigin.self, forKey: key)
            default:
                return nil
            }
        }