getCloudStorageInfo method

Future<Map<String, dynamic>> getCloudStorageInfo(
  1. String deviceSerial, {
  2. String? phone,
  3. int? channelNo,
})

Implementation

Future<Map<String, dynamic>> getCloudStorageInfo(
  String deviceSerial, {
  String? phone,
  int? channelNo, // Defaults to 1 if not specified by API behavior
}) async {
  final body = <String, dynamic>{'deviceSerial': deviceSerial};
  if (phone != null) body['phone'] = phone;
  if (channelNo != null) body['channelNo'] = channelNo;

  return _client.post('/api/lapp/cloud/storage/device/info', body);
}