getSimplePageById method

Future<SimplePage> getSimplePageById(
  1. int id
)

Gets the simple page by id

Implementation

Future<SimplePage> getSimplePageById(int id) async {
  final response = await _get('/api/simple-page/$id');

  return SimplePage.fromJson(response.data);
}