getIosHistoryOrderList static method
Implementation
static Future<AWResponseModel<List<AWOrder>>> getIosHistoryOrderList() async {
var result = await _channel.invokeMethod('getHistoryOrderList');
final model = getResponseModel(result);
if (!model.result) {
return AWResponseModel.sendFailed(model.msg);
}
final List<AWOrder> purchaseList = [];
if (model.data == null) {
return AWResponseModel.sendSuccess(purchaseList);
}
return parseIosOrder(model.data, purchaseList);
}