fun generateType(type: Type): TypeSpec
Returns the generated code for type, which may be a top-level or a nested type.
type