getById method

Future<QBEvent?> getById(
  1. int id
)

Implementation

Future<QBEvent?> getById(int id) async {
  Map<String, Object> data = Map();

  data["id"] = id;

  Map<Object?, Object?> map =
      await _notificationModule.invokeMethod(GET_BY_ID_METHOD, data);

  QBEvent? qbEvent = QBEventMapper.mapToQBEvent(map);

  return qbEvent;
}