getCodesInGroup method

Future<List<Code>> getCodesInGroup(
  1. String sdkId,
  2. String groupId,
  3. List<String> codeIds
)

Implementation

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