getById method

Implementation

Future<ResponseItemDTO<NotificationDTO>> getById({String? id}) async {
  final response = await _http!.request(
    requestType: RequestType.get,
    path: '/notifications',
    param: id,
  );

  return ResponseItemDTO<NotificationDTO>(
    response: response,
    fromJson: NotificationDTO.fromJson,
  );
}