Event class

Available extensions
Annotations
  • @JsonSerializable.new(explicitToJson: true)

Constructors

Event({required String id, required String name, String? description, required String deviceModelId, required String icon, required List<MatchGroup> conditions, List<String>? triggeredAlarms, EmailTemplate? emailTemplate, SMSTemplate? smsTemplate, FCMTemplate? fcmTemplate, VoiceTemplate? voiceTemplate, String? $id, int? cstamp, String? cby, String? uby, int? ustamp})
const
Event.fromJson(Map<String, dynamic> json)
factory

Properties

$id String?
final
cby String?
final
conditions List<MatchGroup>
final
cstamp int?
final
description String?
final
deviceModelId String
final
emailTemplate EmailTemplate?
final
fcmTemplate FCMTemplate?
final
hashCode int
The hash code for this object.
no setteroverride
icon String
final
id String
final
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
smsTemplate SMSTemplate?
final
triggeredAlarms List<String>?
final
uby String?
final
ustamp int?
final
voiceTemplate VoiceTemplate?
final

Methods

copyWith({String? id, String? name, String? description, String? deviceModelId, String? icon, List<MatchGroup>? conditions, List<String>? triggeredAlarms, EmailTemplate? emailTemplate, SMSTemplate? smsTemplate, FCMTemplate? fcmTemplate, VoiceTemplate? voiceTemplate, String? $id, int? cstamp, String? cby, String? uby, int? ustamp}) Event

Available on Event, provided by the $EventExtension extension

copyWithWrapped({Wrapped<String>? id, Wrapped<String>? name, Wrapped<String?>? description, Wrapped<String>? deviceModelId, Wrapped<String>? icon, Wrapped<List<MatchGroup>>? conditions, Wrapped<List<String>?>? triggeredAlarms, Wrapped<EmailTemplate?>? emailTemplate, Wrapped<SMSTemplate?>? smsTemplate, Wrapped<FCMTemplate?>? fcmTemplate, Wrapped<VoiceTemplate?>? voiceTemplate, Wrapped<String?>? $id, Wrapped<int?>? cstamp, Wrapped<String?>? cby, Wrapped<String?>? uby, Wrapped<int?>? ustamp}) Event

Available on Event, provided by the $EventExtension extension

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

Operators

operator ==(dynamic other) bool
The equality operator.
override

Constants

fromJsonFactory → const Event Function(Map<String, dynamic> json)
toJsonFactory → const Map<String, dynamic> Function(Event instance)