queryProposals method

Future<List<ProposalInfoData>> queryProposals()

Implementation

Future<List<ProposalInfoData>> queryProposals() async {
  final List data =
      await (service.queryProposals() as FutureOr<List<dynamic>>);
  return data
      .map((e) => ProposalInfoData.fromJson(Map<String, dynamic>.of(e)))
      .toList();
}