operator []= method

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

Implementation

@override
operator []=(String key, value) {
  switch (key) {
    case "path":
      this.path = value as JsonPath;
      break;
    case "verb":
      this.verb = value as String;
      break;
    case "label":
      this.label = value as String;
      break;
    case "factRef":
      this.factRef = value as MSchemaRef;
      break;
    case "isFlexible":
      this.isFlexible = value as bool;
      break;
    case "remindableInfo":
      this.remindableInfo = value as IRemindableInfo;
      break;
    case "agent":
      this.agent = value as IFactAgent;
      break;
    case "timeSensitivity":
      this.timeSensitivity = value as ITimeSensitivity;
      break;
    case "followUpLabel":
      this.followUpLabel = value as String;
      break;
    case "priority":
      this.priority = value as int;
      break;
    case "isHistorical":
      this.isHistorical = value as bool;
      break;
    case "isFuture":
      this.isFuture = value as bool;
      break;
    case "isStart":
      this.isStart = value as bool;
      break;
    case "isEnd":
      this.isEnd = value as bool;
      break;
    case "isExpiration":
      this.isExpiration = value as bool;
      break;
    case "isTimestamp":
      this.isTimestamp = value as bool;
      break;
    case "hasTime":
      this.hasTime = value as bool;
      break;
    case "recurs":
      this.recurs = value as IFactRecurrence;
      break;
    case "dateTokens":
      this.dateTokens = value as List<String>;
      break;
    default:
      wrapped[key] = value;
  }
}