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}) -
constfactory
-
AtsEvent.fromJson(Map<
String, dynamic> json) -
from json factory
factory
Properties
- asset → Asset?
-
assetAsset linked to the AtsEvent.no setterinherited - assetId → String?
-
assetIdAsset ID linked to the AtsEvent.no setterinherited - at → DateTime?
-
atUnix timestamp representing the date of the event.no setterinherited - comment → String?
-
commenton 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?
-
functionIdPitagoras function ID linked to the AtsEvent.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
idof the asset entity. This ID is unique.no setterinherited - isCheck → bool?
-
isCheckFlag to identify if the event has been checked.no setterinherited - operation → Operation?
-
operationOperation linked to the AtsEvent.no setterinherited - operationId → String?
-
operationIdOperation linked to the AtsEvent.no setterinherited -
payload
→ List<
TelemetrySensor> ? -
payloadRaw received payload values list of the message.no setterinherited - position → TelemetryPosition?
-
positionlinked to the AtsEvent.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sensors
→ List<
Sensor> ? -
sensorsvalues list of the message.no setterinherited - trigger → Trigger?
-
triggerTrigger linked to the AtsEvent.no setterinherited - triggerId → String?
-
triggerIdTrigger linked to the AtsEvent.no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_AtsEvent value)) → TResult -
Available on AtsEvent, provided by the AtsEventPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_AtsEvent value)?) → TResult? -
Available on AtsEvent, provided by the AtsEventPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_AtsEvent value)?, {required TResult orElse()}) → TResult -
Available on AtsEvent, provided by the AtsEventPatterns extension
A variant ofmapthat fallback to returningorElse. -
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 ofwhenthat fallback to anorElsecallback. -
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
Aswitch-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 ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited