serialize

open override fun serialize(encoder: Encoder, value: LLMConsumption)

Encodes value as a JSON object of its pretty fields plus a "unit" label. JSON only.