15 lines
349 B
Swift
15 lines
349 B
Swift
import Foundation
|
|
|
|
public struct Relation: Codable, Sendable, Hashable, Equatable {
|
|
public let type: String
|
|
public let direction: String
|
|
public let url: URLResource?
|
|
public let artist: Artist?
|
|
public let release: Release?
|
|
// Add other entities as needed
|
|
|
|
enum CodingKeys: String, CodingKey {
|
|
case type, direction, url, artist, release
|
|
}
|
|
}
|