fetchPagesList method
Implementation
Future<MyResponse<Page>> fetchPagesList() async {
var response = await DioUtils.request(DioUtils.REQUEST_GET, Apis.FETCH_ALL_PAGES);
if (response.statusCode == 200) {
return MyResponse<Page>.fromJson(response.data,Apis.LIST);
} else {
return MyResponse<Page>.init(Apis.CODE_ERROR, null, null);
}
}