DeviceEvent constructor

DeviceEvent({
  1. List<int>? deviceId,
  2. List<int>? eventId,
  3. Timestamp? created,
  4. DeviceEvent_Type? type,
  5. String? msg,
  6. List<int>? data,
  7. DeviceEvent_Initiater? initiater,
  8. Iterable<DeviceEvent_Info>? information,
})

Implementation

factory DeviceEvent({
  $core.List<$core.int>? deviceId,
  $core.List<$core.int>? eventId,
  $0.Timestamp? created,
  DeviceEvent_Type? type,
  $core.String? msg,
  $core.List<$core.int>? data,
  DeviceEvent_Initiater? initiater,
  $core.Iterable<DeviceEvent_Info>? information,
}) {
  final _result = create();
  if (deviceId != null) {
    _result.deviceId = deviceId;
  }
  if (eventId != null) {
    _result.eventId = eventId;
  }
  if (created != null) {
    _result.created = created;
  }
  if (type != null) {
    _result.type = type;
  }
  if (msg != null) {
    _result.msg = msg;
  }
  if (data != null) {
    _result.data = data;
  }
  if (initiater != null) {
    _result.initiater = initiater;
  }
  if (information != null) {
    _result.information.addAll(information);
  }
  return _result;
}