operator [] method

  1. @override
dynamic operator [](
  1. dynamic key
)
override

Implementation

@override
operator [](key) {
  switch (key?.toString()) {
    case "comment":
      return this.comment;
    case "emote":
      return this.emote;
    case "photos":
      return this.photos;
    case "videos":
      return this.videos;
    case "creator":
      return this.creator;
    case "user":
      return this.user;
    case "chain":
      return this.chain;
    case "content":
      return this.content;
    default:
      return wrapped[key];
  }
}