getInsurances method
Implementation
Future<List<Insurance>> getInsurances(String sdkId, List<String> insuranceIds) async {
final res = await _methodChannel.invokeMethod<String>(
'InsuranceApi.getInsurances',
{
"sdkId": sdkId,
"insuranceIds": jsonEncode(insuranceIds.map((x0) => x0).toList()),
}
);
if (res == null) throw AssertionError("received null result from platform method getInsurances");
final parsedResJson = jsonDecode(res);
return (parsedResJson as List<dynamic>).map((x1) => Insurance.fromJSON(x1) ).toList();
}