on-internet
← Community

how to Serialize .Net Class to Avro.Generic.GenericRecord for publishing into kafka topic?

Stack Overflow ·

I am trying to find a way/helper to convert.Net Class to Avro.Generic.GenericRecord . Currently, I am manually adding field-name and field-value to Generic record. Is there a serializer/converter which I can use to convert the object to generic record and publish on to a kafka topic. class Plant { public long Id { get; set; } public string Name { get; set; } public List<PlantProperties> PlantProperties{ get; set; } } class PlantProperties { public long Leaves{ get; set; } public string Color{ get; set; } } Please suggest.

Comments

Sign in or sign up to comment and upvote.

No comments yet.