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