createSegmentPage method

Future<SegmentPage> createSegmentPage(
  1. String name
)

Creates a new segment page with the given data

Implementation

Future<SegmentPage> createSegmentPage(String name) async {
  final response = await _post('/api/segment-page', data: {
    'name': name,
  });

  return SegmentPage.fromJson(response.data);
}