queryCouncilMotions method

Future<List<CouncilMotionData>> queryCouncilMotions()

Implementation

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