fromJson static method
Inherited by: DeviceTokenApplePushVoIP DeviceTokenApplePush DeviceTokenBlackBerryPush DeviceTokenFirebaseCloudMessaging DeviceTokenHuaweiPush DeviceTokenMicrosoftPushVoIP DeviceTokenMicrosoftPush DeviceTokenSimplePush DeviceTokenTizenPush DeviceTokenUbuntuPush DeviceTokenWebPush DeviceTokenWindowsPush
Implementation
static DeviceTokenSimplePush? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return DeviceTokenSimplePush(
endpoint: (json['endpoint'] as String?) ?? '',
);
}