yattee/Model/Thumbnail.swift
2021-07-14 23:34:39 +02:00

13 lines
243 B
Swift

import Foundation
import SwiftyJSON
struct Thumbnail {
var url: URL
var quality: ThumbnailQuality
init(_ json: JSON) {
url = json["url"].url!
quality = ThumbnailQuality(rawValue: json["quality"].string!)!
}
}