We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4ea797d + 8339e4b commit bff8f96Copy full SHA for bff8f96
modules/swagger-codegen/src/main/resources/swift/model.mustache
@@ -21,6 +21,8 @@ public class {{classname}}: JSONEncodable {
21
{{/description}}public var {{name}}: {{{datatype}}}{{^unwrapRequired}}?{{/unwrapRequired}}{{#unwrapRequired}}{{^required}}?{{/required}}{{#required}}!{{/required}}{{/unwrapRequired}}{{#defaultValue}} = {{{defaultValue}}}{{/defaultValue}}{{/isEnum}}
22
{{/vars}}
23
24
+ public init() {}
25
+
26
// MARK: JSONEncodable
27
func encodeToJSON() -> AnyObject {
28
var nillableDictionary = [String:AnyObject?](){{#vars}}{{#isNotContainer}}{{#isPrimitiveType}}{{^isEnum}}
0 commit comments