initDesignDocs method

Future<List<DesignDocument>> initDesignDocs(
  1. String sdkId,
  2. String id,
  3. String? clazz,
  4. bool? warmup,
  5. bool? dryRun,
)

Implementation

Future<List<DesignDocument>> initDesignDocs(String sdkId, String id, String? clazz, bool? warmup, bool? dryRun) async {
	final res = await _methodChannel.invokeMethod<String>(
		'GroupApi.initDesignDocs',
		{
			"sdkId": sdkId,
			"id": jsonEncode(id),
			"clazz": jsonEncode(clazz),
			"warmup": jsonEncode(warmup),
			"dryRun": jsonEncode(dryRun),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method initDesignDocs");
	final parsedResJson = jsonDecode(res);
	return (parsedResJson as List<dynamic>).map((x1) => DesignDocument.fromJSON(x1) ).toList();
}