mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-03 22:20:56 +00:00
fix typo
This commit is contained in:
parent
dfda700e7e
commit
154f85992e
@ -46,9 +46,9 @@ class Decoders {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static func decode<T, Key: Hashable>(clazz clazz: [Key:T].Type, source: AnyObject) -> [Key:T] {
|
static func decode<T, Key: Hashable>(clazz clazz: [Key:T].Type, source: AnyObject) -> [Key:T] {
|
||||||
let sourceDictinoary = source as! [Key: AnyObject]
|
let sourceDictionary = source as! [Key: AnyObject]
|
||||||
var dictionary = [Key:T]()
|
var dictionary = [Key:T]()
|
||||||
for (key, value) in sourceDictinoary {
|
for (key, value) in sourceDictionary {
|
||||||
dictionary[key] = Decoders.decode(clazz: T.self, source: value)
|
dictionary[key] = Decoders.decode(clazz: T.self, source: value)
|
||||||
}
|
}
|
||||||
return dictionary
|
return dictionary
|
||||||
|
Loading…
x
Reference in New Issue
Block a user