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 "contactKeys":
      this.contactKeys = value as List<MKey>;
      break;
    case "ownedStartDate":
      this.ownedStartDate = value as FlexiDate;
      break;
    case "ownedEndDate":
      this.ownedEndDate = value as FlexiDate;
      break;
    case "itemName":
      this.itemName = value as String;
      break;
    case "itemType":
      this.itemType = value as String;
      break;
    case "manufacturer":
      this.manufacturer = value as String;
      break;
    case "modelNumber":
      this.modelNumber = value as String;
      break;
    case "photos":
      this.photos = value as List<IImageContent>;
      break;
    case "videos":
      this.videos = value as List<IVideoContent>;
      break;
    case "details":
      this.details = value as String;
      break;
    default:
      wrapped[key] = value;
  }
}