getSegmentPages method

Future<Iterable<SegmentPage>> getSegmentPages()

Gets all segment pages

Implementation

Future<Iterable<SegmentPage>> getSegmentPages() async {
  final response = await _get('/api/segment-page');

  return response.data['items'].map<SegmentPage>((e) => SegmentPage.fromJson(e));
}