getDeviceInfo method
获取设备信息
Implementation
Future<EzvizDeviceInfo?> getDeviceInfo(String deviceSerial) async {
Map<String, dynamic>? result = await _channel.invokeMapMethod(
EzvizChannelMethods.deviceInfo,
{'deviceSerial': deviceSerial},
);
if (result != null) {
return EzvizDeviceInfo.fromJson(result);
} else {
return null;
}
}