craftStarGift method

Future<Result<UpdatesBase>> craftStarGift({
  1. required List<InputSavedStarGiftBase> stargift,
})

Craft Star Gift.

ID: b0f9684f.

Implementation

Future<Result<UpdatesBase>> craftStarGift({
  required List<InputSavedStarGiftBase> stargift,
}) async {
  // Preparing the request.
  final request = PaymentsCraftStarGift(stargift: stargift);

  // Invoke and wait for response.
  final response = await _c.invoke(request);

  // Return the result.
  return response._to<UpdatesBase>();
}