Map<String, dynamic> toJson() { final language = this.language; final text = this.text; return { 'language': language.toValue(), 'text': text, }; }