Closed 417-72KI closed 3 years ago
There are redundant codes for initializing JSONBodyParameters. I make it possible to initialize simply from Dictionary Literal.
JSONBodyParameters
let object = ["foo": 1, "bar": 2, "baz": 3] let parameters = JSONBodyParameters(JSONObject: object)
let parameters: JSONBodyParameters = ["foo": 1, "bar": 2, "baz": 3]
or
let parameters = ["foo": 1, "bar": 2, "baz": 3] as JSONBodyParameters
There are redundant codes for initializing
JSONBodyParameters
. I make it possible to initialize simply from Dictionary Literal.Before
After
or