JSON-compatible representation.
Map<String, Object?> toJson() => { 'name': name, 'durationUs': durationUs, 'category': category, };