operator []= method

  1. @override
void operator []=(
  1. String key,
  2. dynamic value
)
override

Implementation

@override
operator []=(String key, value) {
  switch(key) {
    case "recipient": this.recipient = value as String; break;
    case "isUserId": this.isUserId = value as bool; break;
    case "isNativePush": this.isNativePush = value as bool; break;
    case "notification": this.notification = value as INotification; break;
    case "body": this.body = value as IMessageBody; break;
    case "type": this.type = value as IPushMessageType; break;
    default: wrapped[key] = value;
  }
}