operator []= method

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

Implementation

@override
operator []=(String key, value) {
  switch (key) {
    case "startDate":
      this.startDate = value as FlexiDate;
      break;
    case "endDate":
      this.endDate = value as FlexiDate;
      break;
    case "phaseKey":
      this.phaseKey = value as String;
      break;
    case "name":
      this.name = value as String;
      break;
    case "description":
      this.description = value as String;
      break;
    case "mainPhoto":
      this.mainPhoto = value as IImageContent;
      break;
    case "photos":
      this.photos = value as List<IImageContent>;
      break;
    case "videos":
      this.videos = value as List<IVideoContent>;
      break;
    case "location":
      this.location = value as IPhysicalLocation;
      break;
    default:
      wrapped[key] = value;
  }
}