wire.Collectionclass passing in the key field that makes each row unique along with the array of data.
setmethod on the collection. This method will add the object to the collection if it does not already exist. If the object exists, it will be overwritten with the object that is passed into the method.
getmethod with the key value.
removemethod with the key to remove an object from the collection.