getCode method
Implementation
Future<Code?> getCode(String sdkId, String codeId) async {
final res = await _methodChannel.invokeMethod<String>(
'CodeApi.getCode',
{
"sdkId": sdkId,
"codeId": jsonEncode(codeId),
}
).catchError(convertPlatformException);
if (res == null) throw AssertionError("received null result from platform method getCode");
final parsedResJson = jsonDecode(res);
return parsedResJson == null ? null : Code.fromJSON(parsedResJson);
}