Addressing feedback.

Removed use of 'this.'.
Added SwaggerConfig.
Removed ToSwaggerType method in favour of Primitive.FromType.