getChimeType method

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

Implementation

Future<Map<String, dynamic>> getChimeType(
  String deviceSerial, {
  int? channelNo,
}) async {
  final body = <String, dynamic>{'deviceSerial': deviceSerial};
  if (channelNo != null) body['channelNo'] = channelNo;
  // Corrected endpoint based on API doc section name (1.17 Get chime type)
  return _client.post('/api/lapp/device/chime/get', body);
}