operator [] method

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

Implementation

@override
operator [](key) {
  switch (key?.toString()) {
    case "creator":
      return this.creator;
    case "dateCreated":
      return this.dateCreated;
    case "assistedTask":
      return this.assistedTask;
    case "contactKeys":
      return this.contactKeys;
    case "possessions":
      return this.possessions;
    case "organizations":
      return this.organizations;
    case "pets":
      return this.pets;
    case "traditions":
      return this.traditions;
    case "traits":
      return this.traits;
    case "memoryDate":
      return this.memoryDate;
    case "memory":
      return this.memory;
    case "photos":
      return this.photos;
    case "videos":
      return this.videos;
    case "location":
      return this.location;
    case "details":
      return this.details;
    default:
      return wrapped[key];
  }
}