File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -62,14 +62,14 @@ public class ModelGenerator {
62
62
63
63
//MARK: Public Methods
64
64
/**
65
- Initalize the model generator with various settings.
65
+ Initalize the model generator with various settings.
66
66
67
- - parameter baseContent: Base JSON that has to be converted into model.
68
- - parameter baseClassName: Name of the base class.
69
- - parameter filePath: Filepath where the generated model has to be saved.
67
+ - parameter baseContent: Base JSON that has to be converted into model.
68
+ - parameter baseClassName: Name of the base class.
69
+ - parameter filePath: Filepath where the generated model has to be saved.
70
70
71
- - returns: A ModelGenerator instance.
72
- */
71
+ - returns: A ModelGenerator instance.
72
+ */
73
73
init ( baseContent: JSON , baseClassName: String , filePath: String ) {
74
74
self . baseContent = baseContent
75
75
self . filePath = filePath
@@ -326,7 +326,10 @@ public class ModelGenerator {
326
326
var component : String = element
327
327
if index != 0 {
328
328
component. replaceRange ( component. startIndex... component. startIndex, with: String ( component [ component. startIndex] ) . uppercaseString)
329
+ } else {
330
+ component. replaceRange ( component. startIndex... component. startIndex, with: String ( component [ component. startIndex] ) . lowercaseString)
329
331
}
332
+
330
333
finalVariableName. appendContentsOf ( component)
331
334
}
332
335
return finalVariableName
You can’t perform that action at this time.
0 commit comments