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 "ownedStartDate":
      return this.ownedStartDate;
    case "ownedEndDate":
      return this.ownedEndDate;
    case "itemName":
      return this.itemName;
    case "itemType":
      return this.itemType;
    case "manufacturer":
      return this.manufacturer;
    case "modelNumber":
      return this.modelNumber;
    case "photos":
      return this.photos;
    case "videos":
      return this.videos;
    case "details":
      return this.details;
    default:
      return wrapped[key];
  }
}