asEnrichedDestinationRecordAirbyteValue

fun asEnrichedDestinationRecordAirbyteValue(extractedAtAsTimestampWithTimezone: Boolean = false, respectLegacyUnions: Boolean = false): EnrichedDestinationRecordAirbyteValue

Convert this record to an EnrichedRecord. Crucially, after this conversion, all entries in EnrichedDestinationRecordAirbyteValue.allTypedFields are guaranteed to have EnrichedAirbyteValue.abValue either be NullValue, or match EnrichedAirbyteValue.type (e.g. if type is TimestampTypeWithTimezone, then value is either NullValue, or TimestampWithTimezoneValue).