UserDevice class

Annotations
  • @JsonSerializable(checked: true, createToJson: true, disallowUnrecognizedKeys: false, explicitToJson: true)

Constructors

UserDevice({int? id, String? name, required String registrationId, String? deviceId, bool? active = true, DateTime? dateCreated, required UserDeviceTypeEnum type})
Returns a new UserDevice instance.
UserDevice.fromJson(Map<String, dynamic> json)
factory

Properties

active bool?
Inactive devices will not be sent notifications
final
dateCreated DateTime?
final
deviceId String?
Unique device identifier
final
hashCode int
The hash code for this object.
no setteroverride
id int?
final
name String?
final
registrationId String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type UserDeviceTypeEnum
final

Methods

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 ==(Object other) bool
The equality operator.
override