You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fluffychat/lib/pangea/models/language_detection_model.dart

20 lines
371 B
Dart

class LanguageDetection {
String langCode;
LanguageDetection({
required this.langCode,
});
factory LanguageDetection.fromJson(Map<String, dynamic> json) {
return LanguageDetection(
langCode: json[_langCodeKey],
);
}
static const _langCodeKey = "lang_code";
Map<String, dynamic> toJson() => {
_langCodeKey: langCode,
};
}