text: "use strict";
  var PushMessage = (function () {
      function PushMessage() {
      }
      PushMessage.fromPluginData = function (data) {
          var message = new PushMessage();
          message.raw = data;
          message.text = data.message;
          message.title = data.title;
          message.count = data.count;
          message.sound = data.sound;
          message.image = data.image;
          message.app = {
              'asleep': !data.additionalData.foreground,
              'closed': data.additionalData.coldstart
          };
          message.payload = data.additionalData['payload'];
          return message;
      };
      PushMessage.prototype.toString = function () {
          return "<PushMessage [\"" + this.title + "\"]>";
      };
      return PushMessage;
  }());
  exports.PushMessage = PushMessage;
  