operator [] method
Implementation
@override
operator [](key) {
switch(key?.toString()) {
case "creator": return this.creator;
case "dateCreated": return this.dateCreated;
case "assistedTask": return this.assistedTask;
case "debtor": return this.debtor;
case "creditor": return this.creditor;
case "reason": return this.reason;
case "amount": return this.amount;
default: return wrapped[key];
}
}