DeviceEvent constructor
DeviceEvent({
- List<
int> ? deviceId, - List<
int> ? eventId, - Timestamp? created,
- DeviceEvent_Type? type,
- String? msg,
- List<
int> ? data, - DeviceEvent_Initiater? initiater,
- 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;
}