operator []= method

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

Implementation

@override
operator []=(String key, value) {
  switch (key) {
    case "name":
      this.name = value as String;
      break;
    case "logo":
      this.logo = value as IImageContent;
      break;
    case "phases":
      this.phases = value as List<IPhase>;
      break;
    case "parent":
      this.parent = value as List<MKey>;
      break;
    case "address":
      this.address = value as IPhysicalLocation;
      break;
    default:
      wrapped[key] = value;
  }
}