fields

Event custom fields data received from M/IC.

Numeric fields arrive as Number (whole values as Int/Long depending on magnitude, fractional as Double). Read them with as? Number and coerce (.toInt() / .toDouble()) rather than casting to a specific numeric subtype, which would fail depending on the value.