// GetTopicAsRequest takes a topic returned from Lenses and transforms to a request
GetTopicAsRequest takes a topic returned from Lenses and transforms to a request
// GetTopicAsRequest takes a topic returned from Lenses and transforms to a request
func (topic *Topic) GetTopicAsRequest(config KV) CreateTopicPayload {
	return CreateTopicPayload{
		TopicName:   topic.TopicName,
		Partitions:  topic.Partitions,
		Replication: topic.Replication,
		Description: topic.Description,
		Configs:     config,
	}
}
func ( topic * Topic ) GetTopicAsRequest ( config KV ) CreateTopicPayload { return CreateTopicPayload { TopicName : topic . TopicName , Partitions : topic . Partitions , Replication : topic . Replication , Description : topic . Description , Configs : config , } }
GetTopicAsRequest takes a topic returned from Lenses and transforms to a request
GetTopicAsRequest takes a topic returned from Lenses and transforms to a request