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 "contactKey":
      return this.contactKey;
    case "birthday":
      return this.birthday;
    case "name":
      return this.name;
    case "photos":
      return this.photos;
    case "petType":
      return this.petType;
    case "info":
      return this.info;
    default:
      return wrapped[key];
  }
}