operator []= method
void
operator []=(
- String key,
- 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;
}
}