AtsEvent class abstract

Available extensions
Annotations
  • @freezed

Constructors

AtsEvent({String? id, Operation? operation, String? operationId, Trigger? trigger, String? triggerId, String? functionId, Asset? asset, String? assetId, TelemetryPosition? position, List<TelemetrySensor>? payload, List<Sensor>? sensors, @TimestampOrNullConverter() DateTime? at, bool? isCheck, String? comment})
const
factory
AtsEvent.fromJson(Map<String, dynamic> json)
from json factory
factory

Properties

asset Asset?
asset Asset linked to the AtsEvent.
no setterinherited
assetId String?
assetId Asset ID linked to the AtsEvent.
no setterinherited
at DateTime?
at Unix timestamp representing the date of the event.
no setterinherited
comment String?
comment on closing event.
no setterinherited
copyWith → $AtsEventCopyWith<AtsEvent>
Create a copy of AtsEvent with the given fields replaced by the non-null parameter values.
no setterinherited
functionId String?
functionId Pitagoras function ID linked to the AtsEvent.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String?
id of the asset entity. This ID is unique.
no setterinherited
isCheck bool?
isCheck Flag to identify if the event has been checked.
no setterinherited
operation Operation?
operation Operation linked to the AtsEvent.
no setterinherited
operationId String?
operationId Operation linked to the AtsEvent.
no setterinherited
payload List<TelemetrySensor>?
payload Raw received payload values list of the message.
no setterinherited
position TelemetryPosition?
position linked to the AtsEvent.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sensors List<Sensor>?
sensors values list of the message.
no setterinherited
trigger Trigger?
trigger Trigger linked to the AtsEvent.
no setterinherited
triggerId String?
triggerId Trigger linked to the AtsEvent.
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_AtsEvent value)) → TResult

Available on AtsEvent, provided by the AtsEventPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_AtsEvent value)?) → TResult?

Available on AtsEvent, provided by the AtsEventPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_AtsEvent value)?, {required TResult orElse()}) → TResult

Available on AtsEvent, provided by the AtsEventPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(String? id, Operation? operation, String? operationId, Trigger? trigger, String? triggerId, String? functionId, Asset? asset, String? assetId, TelemetryPosition? position, List<TelemetrySensor>? payload, List<Sensor>? sensors, DateTime? at, bool? isCheck, String? comment)?, {required TResult orElse()}) → TResult

Available on AtsEvent, provided by the AtsEventPatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this AtsEvent to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(String? id, Operation? operation, String? operationId, Trigger? trigger, String? triggerId, String? functionId, Asset? asset, String? assetId, TelemetryPosition? position, List<TelemetrySensor>? payload, List<Sensor>? sensors, DateTime? at, bool? isCheck, String? comment)) → TResult

Available on AtsEvent, provided by the AtsEventPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(String? id, Operation? operation, String? operationId, Trigger? trigger, String? triggerId, String? functionId, Asset? asset, String? assetId, TelemetryPosition? position, List<TelemetrySensor>? payload, List<Sensor>? sensors, DateTime? at, bool? isCheck, String? comment)?) → TResult?

Available on AtsEvent, provided by the AtsEventPatterns extension

A variant of when that fallback to returning null

Operators

operator ==(Object other) bool
The equality operator.
inherited