validate method
Implementation
Future<Invoice> validate(String sdkId, String invoiceId, String scheme, String forcedValue) async {
final res = await _methodChannel.invokeMethod<String>(
'InvoiceApi.tryAndRecover.validate',
{
"sdkId": sdkId,
"invoiceId": jsonEncode(invoiceId),
"scheme": jsonEncode(scheme),
"forcedValue": jsonEncode(forcedValue),
}
);
if (res == null) throw AssertionError("received null result from platform method validate");
final parsedResJson = jsonDecode(res);
return Invoice.fromJSON(parsedResJson);
}