getProductsForSale static method

Future<List<IaphubProduct>> getProductsForSale()

Get products for sale

Implementation

static Future<List<IaphubProduct>> getProductsForSale() async {
  final data = await _invokeMethodAndParseResult<List<Map<String, dynamic>>>(
      'getProductsForSale', {});

  return data.map((item) => IaphubProduct.fromJson(item)).toList();
}