getEvent method

Implementation

Future<EntitySubscriptionEvent<T>?> getEvent() async {
  final eventJson = await CardinalSdkPlatformInterface.instance
      .subscription
      .getEvent(_instanceId);
  if (eventJson != null) {
    return EntitySubscriptionEvent.fromJSON(eventJson, _decodeT);
  } else {
    return null;
  }
}