DeviceResponse class

Constructors

DeviceResponse({required DateTime createdAt, bool? disabled, String? disabledReason, required String id, required String pushProvider, String? pushProviderName, required String userId, bool? voip})
Returns a new DeviceResponse instance.

Properties

createdAt ↔ DateTime
Date/time of creation
getter/setter pair
disabled ↔ bool?
Whether device is disabled or not
getter/setter pair
disabledReason ↔ String?
Reason explaining why device had been disabled
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String
Device ID
getter/setter pair
pushProvider ↔ String
Push provider
getter/setter pair
pushProviderName ↔ String?
Push provider name
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
userId ↔ String
User ID
getter/setter pair
voip ↔ bool?
When true the token is for Apple VoIP push notifications
getter/setter pair

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

Static Methods

fromJson(dynamic value) → DeviceResponse?
Returns a new DeviceResponse instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<DeviceResponse>
mapFromJson(dynamic json) → Map<String, DeviceResponse>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<DeviceResponse>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.