getLuckyNumber static method

Future<DataResult> getLuckyNumber(
  1. int? number
)

Implementation

static Future<DataResult> getLuckyNumber(int? number) async {
  Map other = {'betsNumber': '$number'};
  var res = await BaseDao.fromBaseJson(other, Address.getLuckyNumber());
  if (res.result) {
    var entity = LuckyNumberEntity.fromJson(res.data);
    return DataResult(entity, true);
  }
  return res;
}