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