cofounderella/lib/models/language.dart

24 lines
419 B
Dart
Raw Normal View History

2024-05-05 01:02:09 +02:00
class Language {
final String code;
final String name;
final String nativeName;
final String iconFile;
Language({
required this.code,
required this.name,
required this.nativeName,
required this.iconFile,
});
// convert to a map
Map<String, dynamic> toMap() {
return {
'code': code,
'name': name,
'nativeName': nativeName,
'iconFile': iconFile,
};
}
}