operator []= method

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

Implementation

@override
operator []=(String key, value) {
  switch (key) {
    case "comment":
      this.comment = value as String;
      break;
    case "emote":
      this.emote = value as String;
      break;
    case "photos":
      this.photos = value as List<IImageContent>;
      break;
    case "videos":
      this.videos = value as List<IVideoContent>;
      break;
    case "creator":
      this.creator = value as IReliveItContact;
      break;
    case "user":
      this.user = value as MKey;
      break;
    case "chain":
      this.chain = value as List<MKey>;
      break;
    case "content":
      this.content = value as MKey;
      break;
    default:
      wrapped[key] = value;
  }
}