func schemaAnnotation(n *gen.Type) (*SchemaAnnotation, error) {
	ant := &SchemaAnnotation{}
	if n.Annotations != nil && n.Annotations[ant.Name()] != nil {
		if err := ant.Decode(n.Annotations[ant.Name()]); err != nil {
			return nil, err
		}
	}
	return ant, nil
}
// schemaAnnotation returns the SchemaAnnotation of this node.
schemaAnnotation returns the SchemaAnnotation of this node.
// schemaAnnotation returns the SchemaAnnotation of this node .
func schemaAnnotation(n *gen.Type) (*SchemaAnnotation, error) {
	ant := &SchemaAnnotation{}
	if n.Annotations != nil && n.Annotations[ant.Name()] != nil {
		if err := ant.Decode(n.Annotations[ant.Name()]); err != nil {
			return nil, err
		}
	}
	return ant, nil
}
func schemaAnnotation ( n * gen . Type ) ( * SchemaAnnotation , error ) { ant := & SchemaAnnotation { } if n . Annotations != nil && n . Annotations [ ant . Name ( ) ] != nil { if err := ant . Decode ( n . Annotations [ ant . Name ( ) ] ) ; err != nil { return nil , err } } return ant , nil }
schemaAnnotation returns the SchemaAnnotation of this node.
schemaAnnotation returns the SchemaAnnotation of this node .