fromMap static method
override
Construct from Map.
Implementation
static DeviceTokenWebPush? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
if (_ != CONSTRUCTOR) return null;
var extra = _map['@extra'];
var clientId = _map['@clientId'];
var endpoint = _map['endpoint']! as String;
var p256dh_base64url = _map['p256dh_base64url']! as String;
var auth_base64url = _map['auth_base64url']! as String;
return DeviceTokenWebPush(
extra: extra,
clientId: clientId,
endpoint: endpoint,
p256dh_base64url: p256dh_base64url,
auth_base64url: auth_base64url,
);
}