Device class Null safety

The class that contains the information about a device

Annotations

Constructors

Device({required String id, required String pushProvider})
Constructor used for json serialization
Device.fromJson(Map<String, dynamic> json)
Create a new instance from a json
factory

Properties

hashCode int
The hash code for this object.
read-only, inherited
id String
The id of the device
final
pushProvider String
The notification push provider
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

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