/// Represents a translated remark in a specific language
class RemarkTranslation {
  final String language;
  final String text;

  RemarkTranslation({required this.language, required this.text});

  factory RemarkTranslation.fromJson(Map<String, dynamic> json) {
    return RemarkTranslation(language: json['language']?.toString() ?? '', text: json['text']?.toString() ?? '');
  }

  Map<String, dynamic> toJson() {
    return {'language': language, 'text': text};
  }

  @override
  String toString() {
    return 'RemarkTranslation(language: $language, text: $text)';
  }
}
