queryTreasuryTips method

Future<List<TreasuryTipData>> queryTreasuryTips()

Implementation

Future<List<TreasuryTipData>> queryTreasuryTips() async {
  final List? data = await service.queryTreasuryTips();
  if (data != null) {
    return data
        .map((e) => TreasuryTipData.fromJson(Map<String, dynamic>.of(e)))
        .toList();
  }
  return [];
}