operator []= method
void
operator []=(
- String key,
- 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;
}
}