Files
plexswift/Sources/Plexswift/models/operations/GetFileHashRequest.swift

30 lines
905 B
Swift

// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct GetFileHashRequest: APIValue {
/// This is the path to the local file, must be prefixed by `file://`
public let url: String
/// Item type
@DecimalSerialized
public private(set) var type: Double?
/// Creates an object with the specified parameters
///
/// - Parameter url: This is the path to the local file, must be prefixed by `file://`
/// - Parameter type: Item type
///
public init(url: String, type: Double? = nil) {
self.url = url
self._type = DecimalSerialized<Double?>(wrappedValue: type)
}
}
}
extension Operations.GetFileHashRequest {
var typeWrapper: DecimalSerialized<Double?> {
return _type
}
}