elCaribe app - customization and branding
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import 'package:news/utils/api.dart';
|
||||
import 'package:news/utils/strings.dart';
|
||||
|
||||
class LanguageJsonRemoteDataSource {
|
||||
Future<dynamic> getLanguageJson({required String lanCode}) async {
|
||||
try {
|
||||
final body = {CODE: lanCode};
|
||||
final result = await Api.sendApiRequest(body: body, url: Api.getLangJsonDataApi);
|
||||
|
||||
return result;
|
||||
} catch (e) {
|
||||
throw ApiMessageAndCodeException(errorMessage: e.toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user