DeviceMsg constructor

DeviceMsg({
  1. DevMsgType? msgType,
  2. String? userId,
  3. List<int>? data,
})

Implementation

factory DeviceMsg({
  DevMsgType? msgType,
  $core.String? userId,
  $core.List<$core.int>? data,
}) {
  final result = create();
  if (msgType != null) result.msgType = msgType;
  if (userId != null) result.userId = userId;
  if (data != null) result.data = data;
  return result;
}