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