Map<String, dynamic> toJson() => { "device_token": deviceToken, "last_used": lastUsedTimeStamp, "platform": platform, "attributes": attributes?.toJson(), };