@override Object toJson() => { if (modality.isNotDefault) 'modality': modality.toJson(), if (tokenCount.isNotDefault) 'tokenCount': tokenCount, };