getPromotionByCode method

Future<SyneriseResult<Promotion>> getPromotionByCode(
  1. String code
)

Implementation

Future<SyneriseResult<Promotion>> getPromotionByCode(String code) async {
  return await SyneriseInvocation(methodChannel)
      .invokeSDKApiMethod<Promotion>('Promotions/getPromotionByCode',
          parameters: code, isMappable: true);
}