code: func newStructDefFromType(apiDef *raml.APIDefinition, t raml.Type, sName, packageName string) structDef {
  	sd := newStructDef(apiDef, sName, packageName, t.Description, t.Properties)
  	sd.T = t
  
  	// handle advanced type on raml1.0
  	sd.handleAdvancedType(apiDef)
  
  	return sd
  }
docs: // create struct definition from RAML Type node