code: func ConvertSpaceToModel(appSpace app.Space) space.Space {
  	modelSpace := space.Space{}
  
  	if appSpace.ID != nil {
  		modelSpace.ID = *appSpace.ID
  	}
  	if appSpace.Attributes != nil {
  		if appSpace.Attributes.CreatedAt != nil {
  			modelSpace.CreatedAt = *appSpace.Attributes.CreatedAt
  		}
  		if appSpace.Attributes.UpdatedAt != nil {
  			modelSpace.UpdatedAt = *appSpace.Attributes.UpdatedAt
  		}
  		if appSpace.Attributes.Version != nil {
  			modelSpace.Version = *appSpace.Attributes.Version
  		}
  		if appSpace.Attributes.Name != nil {
  			modelSpace.Name = *appSpace.Attributes.Name
  		}
  		if appSpace.Attributes.Description != nil {
  			modelSpace.Description = *appSpace.Attributes.Description
  		}
  	}
  	if appSpace.Relationships != nil && appSpace.Relationships.OwnedBy != nil &&
  		appSpace.Relationships.OwnedBy.Data != nil && appSpace.Relationships.OwnedBy.Data.ID != nil {
  		modelSpace.OwnerID = *appSpace.Relationships.OwnedBy.Data.ID
  	}
  	if appSpace.Relationships != nil && appSpace.Relationships.SpaceTemplate != nil &&
  		appSpace.Relationships.SpaceTemplate.Data != nil {
  		modelSpace.SpaceTemplateID = appSpace.Relationships.SpaceTemplate.Data.ID
  	}
  	return modelSpace
  }
docs: // ConvertSpaceToModel converts an `app.Space` to a `space.Space`