resolveDocumentsConflicts method

Future<List<IdWithRev>> resolveDocumentsConflicts(
  1. String sdkId,
  2. String? ids,
  3. int? limit
)

Implementation

Future<List<IdWithRev>> resolveDocumentsConflicts(String sdkId, String? ids, int? limit) async {
	final res = await _methodChannel.invokeMethod<String>(
		'SystemApi.resolveDocumentsConflicts',
		{
			"sdkId": sdkId,
			"ids": jsonEncode(ids),
			"limit": jsonEncode(limit),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method resolveDocumentsConflicts");
	final parsedResJson = jsonDecode(res);
	return (parsedResJson as List<dynamic>).map((x1) => IdWithRev.fromJSON(x1) ).toList();
}