CHGenerator/Sources/Generator/Extensions/Decodable+Extensions.swift
2022-09-09 11:18:32 +02:00

9 lines
165 B
Swift

import Foundation
extension JSONDecoder {
func decode<T>(from data: Data) throws -> T where T: Decodable {
try self.decode(T.self, from: data)
}
}