operator [] method
Implementation
@override
operator [](key) {
switch(key?.toString()) {
case "name": return this.name;
case "logo": return this.logo;
case "phases": return this.phases;
case "parent": return this.parent;
case "religion": return this.religion;
case "address": return this.address;
case "leader": return this.leader;
default: return wrapped[key];
}
}