deleteInsurance method

Future<DocIdentifier> deleteInsurance(
  1. String sdkId,
  2. String insuranceId
)

Implementation

Future<DocIdentifier> deleteInsurance(String sdkId, String insuranceId) async {
	final res = await _methodChannel.invokeMethod<String>(
		'InsuranceApi.deleteInsurance',
		{
			"sdkId": sdkId,
			"insuranceId": jsonEncode(insuranceId),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method deleteInsurance");
	final parsedResJson = jsonDecode(res);
	return DocIdentifier.fromJSON(parsedResJson);
}