AggregateIdJsonDeserializer
Jackson JSON deserializer for AggregateId objects.
This deserializer converts a JSON object back into an AggregateId instance, extracting the context name, aggregate name, aggregate ID, and tenant ID from predefined field names in MessageRecords.
Example usage:
val json = """{"contextName":"context","aggregateName":"aggregate","aggregateId":"id","tenantId":"tenant"}"""
val aggregateId = ObjectMapper().readValue<AggregateId>(json)Content copied to clipboard
Functions
Link copied to clipboard
Deserializes JSON into an AggregateId instance.