copied some of the constructor from the android constructor.
Merge branch 'develop_2.0' of https://github.com/willowtreeapps/swagger-codegen into develop_2.0