PushDevice class

Push device info.

Annotations
  • @freezed

Constructors

PushDevice({@JsonKey(name: 'type') required String type, @JsonKey(name: 'device_id') required String deviceId, @JsonKey(name: 'notification_token') required String notificationToken, @JsonKey(name: 'voip_notification_token') required String voipNotificationToken, @JsonKey(name: 'name') required String name, @JsonKey(name: 'data_pushes') required bool dataPushes, @JsonKey(name: 'data_badges') required bool dataBadges, @JsonKey(name: 'allowed_notifications') required bool allowedNotifications})
const
factory
PushDevice.fromJson(Map<String, dynamic> json)
factory

Properties

allowedNotifications bool
deprecated.
no setterinherited
copyWith → $PushDeviceCopyWith<PushDevice>
no setterinherited
dataBadges bool
Send badge value as data. Experimental.
no setterinherited
dataPushes bool
Send silently data pushes that must be fully processed by app. Must be true for modern mobile clients.
no setterinherited
deviceId String
Device id generated by client library.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
name String
Readable device name.
no setterinherited
notificationToken String
Notification token.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
Type: android, ios, web, safari.
no setterinherited
voipNotificationToken String
Notification token for VOIP (iOS only).
no setterinherited

Methods

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

Operators

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