mirror of
https://github.com/LukeHagar/plexswift.git
synced 2025-12-06 04:20:52 +00:00
24 lines
905 B
Swift
24 lines
905 B
Swift
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
|
|
import Foundation
|
|
|
|
extension Operations.GetMetaDataByRatingKeyRequest: Serializable {
|
|
func serialize(with format: SerializableFormat) throws -> String {
|
|
switch format {
|
|
case .path:
|
|
return try serializePathParameterSerializable(self, with: format)
|
|
case .query, .header, .multipart, .form:
|
|
throw SerializationError.invalidSerializationParameter(type: "Operations.GetMetaDataByRatingKeyRequest", format: format.formatDescription)
|
|
}
|
|
}
|
|
}
|
|
|
|
extension Operations.GetMetaDataByRatingKeyRequest: PathParameterSerializable {
|
|
func serializedPathParameters(formatOverride: SerializableFormat?) throws -> [String: String] {
|
|
return [
|
|
"ratingKey": try ratingKey.serialize(with: formatOverride ?? .path(explode: false)),
|
|
].compactMapValues { $0 }
|
|
}
|
|
}
|