getPromotions method

Future<SyneriseResult<PromotionResponse>> getPromotions(
  1. PromotionsApiQuery promotionsApiQuery
)

Implementation

Future<SyneriseResult<PromotionResponse>> getPromotions(
    PromotionsApiQuery promotionsApiQuery) async {
  return await SyneriseInvocation(methodChannel)
      .invokeSDKApiMethod<PromotionResponse>('Promotions/getPromotions',
          parameters: promotionsApiQuery.asMap(), isMappable: true);
}