operator []= method

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

Implementation

@override
operator []=(String key, value) {
  switch (key) {
    case "creator":
      this.creator = value as IReliveItContact;
      break;
    case "dateCreated":
      this.dateCreated = value as DateTime;
      break;
    case "assistedTask":
      this.assistedTask = value as ITaskFactForMModel;
      break;
    case "displayDate":
      this.displayDate = value as DateTime;
      break;
    case "dueDate":
      this.dueDate = value as DateTime;
      break;
    case "completionDate":
      this.completionDate = value as DateTime;
      break;
    case "taskTitle":
      this.taskTitle = value as String;
      break;
    case "taskDescription":
      this.taskDescription = value as String;
      break;
    case "timeSensitivity":
      this.timeSensitivity = value as ITimeSensitivity;
      break;
    case "isCancelled":
      this.isCancelled = value as bool;
      break;
    case "dueConfig":
      this.dueConfig = value as ITaskDueConfig;
      break;
    case "displayOffset":
      this.displayOffset = value as TimeSpan;
      break;
    case "isAlert":
      this.isAlert = value as bool;
      break;
    case "isSkippable":
      this.isSkippable = value as bool;
      break;
    case "state":
      this.state = value as MModel;
      break;
    case "result":
      this.result = value as MModel;
      break;
    case "operationRef":
      this.operationRef = value as MOperationRef;
      break;
    case "isUnread":
      this.isUnread = value as bool;
      break;
    case "isNotified":
      this.isNotified = value as bool;
      break;
    case "setup":
      this.setup = value as MModel;
      break;
    default:
      wrapped[key] = value;
  }
}