react-native-video/ios/Video/DataStructures/SelectedTrackCriteria.swift
Nick Fujita 8b75438148
VEX-5682: iOS Swift Conversion (#11)
Converts ios implementation from objective-c to swift.
2021-10-27 10:35:07 +09:00

19 lines
408 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"]
}
}