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 "occasion":
      this.occasion = value as String;
      break;
    case "gift":
      this.gift = value as String;
      break;
    case "notes":
      this.notes = value as String;
      break;
    case "giftDate":
      this.giftDate = value as DateTime;
      break;
    case "gifteeKeys":
      this.gifteeKeys = value as List<MKey>;
      break;
    case "recipientKey":
      this.recipientKey = value as MKey;
      break;
    default:
      wrapped[key] = value;
  }
}