BrickhouseAlert class abstract

BrickhouseAlert Brickhouse Alert entity

FIELDS assets Asset List of assets.

assetsIds ID List of assets IDs.

batteryMinLevel Int Minimum battery level to trigger the alert, in percentage (%). Only for BrickhouseAlertType.BATTERY

curfewEndHour Int End hour of the curfew, in minutes from midnight in the local timezone. Only for BrickhouseAlertType.CURFEW

curfewStartHour Int Start hour of the curfew, in minutes from midnight in the local timezone. Only for BrickhouseAlertType.CURFEW

curfewTimezone String Timezone of the curfew. Only for BrickhouseAlertType.CURFEW

curfewWeekdays Weekdays Weekdays to apply the curfew. Only for BrickhouseAlertType.CURFEW

email String Email to send the alert to.

geofenceColor String Geofence color, in hex mode. Only for BrickhouseAlertType.PRESENCE_GEOFENCE

geofenceMode GeofenceMode Geofence mode. Only for BrickhouseAlertType.PRESENCE_GEOFENCE

geofenceRadius Float Geofence radius in meters. Only for BrickhouseAlertType.PRESENCE_GEOFENCE

geofenceShape GeofencePoint geofenceTrigger BrickhouseGeofenceTrigger Geofence trigger. Only for BrickhouseAlertType.PRESENCE_GEOFENCE

hasEmail String Email to send the alert to.

hasMobilePopup String If the alert should be shown in the mobile app.

hasPhone String Phone number to send the alert to.

hasWebPopup String If the alert should be shown in the web app.

id ID ID of the alert entity. This ID is unique.

maxSpeedMaxValue Float Maximum speed to trigger the alert, in kilometers per hour (km/h). Only for BrickhouseAlertType.MAX_SPEED

name String Name of the alert.

phone PhoneNumber Phone number to send the alert to.

Deprecated sosMessage String Message to send when the SOS alert is triggered. Only for BrickhouseAlertType.SOS

type BrickhouseAlertType Type of the alert.

Annotations
  • @freezed

Constructors

BrickhouseAlert.new({required String id, required String name, required BrickhouseAlertType type, List<Asset>? assets, List<String>? assetsIds, List<String>? email, List<NullablePhoneNumber?>? phone, bool? hasMobilePopup, bool? hasWebPopup, bool? hasEmail, bool? hasPhone, int? batteryMinLevel, @BrickhouseTimeOfDayMinuteOrNullConverter() TimeOfDay? curfewStartHour, @BrickhouseTimeOfDayMinuteOrNullConverter() TimeOfDay? curfewEndHour, String? timezone, @JsonKey(unknownEnumValue: Weekday.monday) List<Weekday>? curfewWeekdays, @ColorOrNullConverter() Color? geofenceColor, @GeofenceModeOrNullConverter() GeofenceMode? geofenceMode, double? geofenceRadius, List<GeofencePoint>? geofenceShape, @JsonKey(unknownEnumValue: BrickhouseGeofenceTrigger.unknown) BrickhouseGeofenceTrigger? geofenceTrigger, double? maxSpeedMaxValue, @Default(false) bool? isMuted, double? speedingThreshold, @Default(false) bool? isDisabled, String? triggerId})
const
factory
BrickhouseAlert.fromJson(Map<String, dynamic> json)
from json
factory

Properties

assets List<Asset>?
List of assets
no setterinherited
assetsIds List<String>?
List of assets IDs.
no setterinherited
batteryMinLevel int?
Minimum battery level to trigger the alert, in percentage (%). Only for BrickhouseAlertType.BATTERY
no setterinherited
copyWith → $BrickhouseAlertCopyWith<BrickhouseAlert>
Create a copy of BrickhouseAlert with the given fields replaced by the non-null parameter values.
no setterinherited
curfewEndHour TimeOfDay?
End hour of the curfew, in minutes from midnight in the local timezone. Only for BrickhouseAlertType.CURFEW
no setterinherited
curfewStartHour TimeOfDay?
Start hour of the curfew, in minutes from midnight in the local timezone. Only for BrickhouseAlertType.CURFEW
no setterinherited
curfewWeekdays List<Weekday>?
Weekdays to apply the curfew. Only for BrickhouseAlertType.CURFEW
no setterinherited
email List<String>?
Email to send the alert to.
no setterinherited
geofenceColor Color?
Geofence color, in hex mode. Only for BrickhouseAlertType.PRESENCE_GEOFENCE
no setterinherited
geofenceMode GeofenceMode?
Geofence mode. Only for BrickhouseAlertType.PRESENCE_GEOFENCE
no setterinherited
geofenceRadius double?
Geofence radius in meters. Only for BrickhouseAlertType.PRESENCE_GEOFENCE
no setterinherited
geofenceShape List<GeofencePoint>?
geofenceShape GeofencePoint
no setterinherited
geofenceTrigger BrickhouseGeofenceTrigger?
Geofence trigger. Only for BrickhouseAlertType.PRESENCE_GEOFENCE
no setterinherited
hasEmail bool?
Email to send the alert to.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hasMobilePopup bool?
If the alert should be shown in the mobile app.
no setterinherited
hasPhone bool?
Phone number to send the alert to.
no setterinherited
hasWebPopup bool?
If the alert should be shown in the web app.
no setterinherited
id String
ID of the alert entity. This ID is unique.
no setterinherited
isDisabled bool?
isDisabled
no setterinherited
isMuted bool?
isMuted represents if the alert is muted or not.
no setterinherited
maxSpeedMaxValue double?
Maximum speed to trigger the alert, in kilometers per hour (km/h). Only for BrickhouseAlertType
no setterinherited
name String
Name of the alert.
no setterinherited
phone List<NullablePhoneNumber?>?
Phone number to send the alert to.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speedingThreshold double?
speedingThreshold represents the threshold of the speeding alert. This is the maximum speed that the asset can reach before the alert is triggered.
no setterinherited
timezone String?
Timezone of the curfew. Only for BrickhouseAlertType.CURFEW
no setterinherited
triggerId String?
triggerId triggerId of the alert
no setterinherited
type BrickhouseAlertType
Type of the alert.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this BrickhouseAlert to a JSON map.
inherited
toString() String
A string representation of this object.
inherited

Operators

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