validate method
Implementation
Future<EncryptedInvoice> validate(String sdkId, String invoiceId, String scheme, String forcedValue) async {
final res = await _methodChannel.invokeMethod<String>(
'InvoiceApi.encrypted.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 EncryptedInvoice.fromJSON(parsedResJson);
}