elCaribe app - customization and branding

This commit is contained in:
2025-12-12 19:09:42 -04:00
parent 9e5d0d8ebf
commit ba7deac9f3
402 changed files with 31833 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import 'package:news/utils/strings.dart';
class LanguageModel {
String? id, language, languageDisplayName, image, code;
int? isRTL;
LanguageModel({this.id, this.image, this.language, this.languageDisplayName, this.code, this.isRTL});
factory LanguageModel.fromJson(Map<String, dynamic> json) {
return LanguageModel(
id: json[ID].toString(),
image: json[IMAGE],
language: json[LANGUAGE],
languageDisplayName: (json[DISPLAY_NAME_LANG] != "") ? json[DISPLAY_NAME_LANG] : json[LANGUAGE],
code: json[CODE],
isRTL: (json[ISRTL].runtimeType == int) ? json[ISRTL] : int.tryParse(json[ISRTL]));
}
}