getDeviceInfo method

Future<EzvizDeviceInfo?> getDeviceInfo(
  1. String deviceSerial
)

获取设备信息

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;
  }
}