21 lines
512 B
Swift
21 lines
512 B
Swift
import Foundation
|
|
|
|
public struct Area: MusicBrainzSearchable {
|
|
public static let entityType: MusicBrainzEntity = .area
|
|
|
|
public let id: String
|
|
public let type: String?
|
|
public let name: String
|
|
public let sortName: String?
|
|
public let disambiguation: String?
|
|
public let lifeSpan: LifeSpan?
|
|
public let relations: [Relation]?
|
|
public let score: Int?
|
|
|
|
enum CodingKeys: String, CodingKey {
|
|
case id, type, name, disambiguation, score, relations
|
|
case sortName = "sort-name"
|
|
case lifeSpan = "life-span"
|
|
}
|
|
}
|