modifyCodes method

Future<List<Code>> modifyCodes(
  1. String sdkId,
  2. List<Code> codeBatch
)

Implementation

Future<List<Code>> modifyCodes(String sdkId, List<Code> codeBatch) async {
	final res = await _methodChannel.invokeMethod<String>(
		'CodeApi.modifyCodes',
		{
			"sdkId": sdkId,
			"codeBatch": jsonEncode(codeBatch.map((x0) => Code.encode(x0)).toList()),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method modifyCodes");
	final parsedResJson = jsonDecode(res);
	return (parsedResJson as List<dynamic>).map((x1) => Code.fromJSON(x1) ).toList();
}