DeviceNotificationToken class

A class representing a device notification token.

This class extends Equatable for value comparison and provides properties for the OS version, device model, and notification token. It also includes methods for JSON serialization and deserialization.

Constructors

DeviceNotificationToken({required String osVersion, required String deviceModel, String? token})
Constructs an instance of DeviceNotificationToken.
const
DeviceNotificationToken.fromJSON(Map<String, dynamic> json)
Constructs an instance of DeviceNotificationToken from a JSON map.

Properties

deviceModel String
The model of the device.
final
hashCode int
The hash code for this object.
no setterinherited
osVersion String
The OS version of the device.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
token String?
The notification token.
final

Methods

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

Operators

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