getLanguagesList static method

Future<DataResult> getLanguagesList()

Implementation

static Future<DataResult> getLanguagesList() async {
  var res = await BaseDao.fromBaseJson({}, Address.getLanguagesList());
  if (res.result) {
    var entity = LanguageEntity.fromJson(res.data);
    return DataResult(entity, true);
  }
  return res;
}