code: func (a *AttributeDefinition) SetReadOnly() {
  	if a.Metadata == nil {
  		a.Metadata = map[string][]string{}
  	}
  	a.Metadata["swagger:read-only"] = nil
  }
docs: // SetReadOnly sets the attribute's ReadOnly field as true.