initDesignDocs method
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();
}