CloudEventConverter class CloudEventConverter : JsonConverter<CloudEvent> A custom converter that attributes the CloudEvent type. This allows System.Text.Json to serialize and deserialize CloudEvents by default. Documentation Code public CloudEventConverter()