getOfferwall static method
Implementation
static Future<OfferwallResponse> getOfferwall(String? offeringId) async {
List<Object?>? response =
await _channel.invokeMethod('getOfferwall', {"offeringId": offeringId});
if (response != null) {
Offerwall? offerwall;
GenericError? error;
if (response [0] != null && response[0] != false) {
offerwall = Offerwall.fromJson(json.decode(response[0]!.toString()));
}
if (response[1] != null) {
error = GenericError.fromJson(json.decode(response[1]!.toString()));
}
return new OfferwallResponse(offerwall, error);
}
return new OfferwallResponse(null, null);
}