800aee09de
* chore: format swift code * chore: format clang code * chore: format kotlin code * refactor: rename folder "API" to "api"
19 lines
400 B
Swift
19 lines
400 B
Swift
struct SelectedTrackCriteria {
|
|
let type: String
|
|
let value: Any?
|
|
|
|
let json: NSDictionary?
|
|
|
|
init(_ json: NSDictionary!) {
|
|
guard json != nil else {
|
|
self.json = nil
|
|
self.type = ""
|
|
self.value = nil
|
|
return
|
|
}
|
|
self.json = json
|
|
self.type = json["type"] as? String ?? ""
|
|
self.value = json["value"]
|
|
}
|
|
}
|