getCode method

Future<Code> getCode(
  1. String sdkId,
  2. String codeId
)

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);
}