buy method
Future<(UResponse<UGoldTxnResponse> ?, UEmptyResponse?, String?)>
buy({
- required UGoldBuyParams p,
- dynamic onOk()?,
- dynamic onError()?,
- dynamic onException(
- String e
Implementation
Future<(UResponse<UGoldTxnResponse>?, UEmptyResponse?, String?)> buy({
required UGoldBuyParams p,
Function(UResponse<UGoldTxnResponse> r)? onOk,
Function(UEmptyResponse e)? onError,
Function(String e)? onException,
}) => _Api.call("/Gold/Buy", p.toMap(), _Api.one(UGoldTxnResponse.fromMap), _Api.empty, onOk, onError, onException);