import 'package:core/models/index.dart'; import 'package:core/services/rest.service.dart'; import 'package:core/services/service.base.dart'; import 'package:notifications/models/index.dart'; class MyNotificationAppService extends ServiceBase { MyNotificationAppService(super._injector); RestService get _restService => resolve(); Future> getList([UserNotificationGetByPagedDto? dto]) { return _restService.request( method: HttpMethod.GET, url: '/api/notifications/my-notifilers', transformer: (res) { return PagedResultDto.fromJson( res.data!, fromJsonT: (json) => UserNotificationDto.fromJson(json as Map),); }, queryParameters: dto?.toJson(), ); } }