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